Add 'cancelled' status to invoices

This commit is contained in:
2025-10-30 15:38:41 +01:00
parent cacc3d5943
commit 9603b100f5
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class InvoiceFactory extends Factory
*/
public function definition(): array
{
$payment_status = $this->faker->randomElement(['draft', 'issued', 'paid', 'due', 'reminded']);
$payment_status = $this->faker->randomElement(['draft', 'issued', 'paid', 'due', 'reminded', 'cancelled']);
return [
'nr' => ($payment_status == 'draft') ? null : $this->faker->unique()->numerify('RE-###'),