Add 'cancelled' status to invoices

This commit is contained in:
vollstock committed 2025-10-30 15:38:41 +01:00
1 parent cacc3d5943
commit 9603b100f5
3 files changed
+6 -3

No files matched your search

+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-###'),