From 6673a44137d03040fd6fb8d413b6891b599e02b8 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 3 Apr 2024 12:22:32 +0800 Subject: [PATCH] fix invoice date for april --- .../Modules/Transactions/Services/CreatesTransaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Transactions/Services/CreatesTransaction.php b/app/Classes/Modules/Transactions/Services/CreatesTransaction.php index 529a2be2..2032b7b8 100644 --- a/app/Classes/Modules/Transactions/Services/CreatesTransaction.php +++ b/app/Classes/Modules/Transactions/Services/CreatesTransaction.php @@ -35,7 +35,7 @@ class CreatesTransaction extends AbstractUpdateRelationshipRecord $model->expires_on = $object->getExpiresOn(); $model->status = $object->getStatus(); - if($object->getTransactionType() === TransactionType::SHIPPING_INVOICE){ + if((int)$object->getTransactionType() === TransactionType::SHIPPING_INVOICE){ $model->created_at = Carbon::now()->subDays(10); $model->updated_at = Carbon::now()->subDays(10); }