From 83cd6db0e7166f20dc42fb7d096580e01293a2b5 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 29 Nov 2021 11:14:11 +0800 Subject: [PATCH] performa invoice --- .../Bookings/ControllersLogic/UpdateBookingAmountLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/UpdateBookingAmountLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/UpdateBookingAmountLogic.php index 94d9cfda..ce157182 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/UpdateBookingAmountLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/UpdateBookingAmountLogic.php @@ -88,6 +88,7 @@ class UpdateBookingAmountLogic extends AbstractControllerLogic } $poTransaction = $booking->transactions()->where('type', TransactionType::PURCHASE_ORDER)->first(); + $proforma = $booking->transactions()->where('type', TransactionType::PROFORMA)->delete(); $this->updatesTransactionStatus->execute($poTransaction, ApprovalStatus::PENDING_SUBMISSION);