From 67c34f80a96ddb04025ceef72d377e3bbbb90d17 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 26 Jul 2023 14:31:40 +1000 Subject: [PATCH] Set todays date on a new expense --- app/Factory/ExpenseFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Factory/ExpenseFactory.php b/app/Factory/ExpenseFactory.php index f43d71260a..89ccfc3c4c 100644 --- a/app/Factory/ExpenseFactory.php +++ b/app/Factory/ExpenseFactory.php @@ -28,7 +28,7 @@ class ExpenseFactory $expense->tax_rate2 = 0; $expense->tax_name3 = ''; $expense->tax_rate3 = 0; - $expense->date = null; + $expense->date = now()->format('Y-m-d'); $expense->payment_date = null; $expense->amount = 0; $expense->foreign_amount = 0;