fix update booking amount bug

This commit is contained in:
omair saleh
2021-12-04 15:04:52 +08:00
parent 3227078e8d
commit c7af5dd557
@@ -86,7 +86,7 @@ class UpdateBookingAmountLogic extends AbstractControllerLogic
}
$poTransaction = $booking->transactions()->where('type', TransactionType::PURCHASE_ORDER)->first();
$proforma = $booking->transactions()->where('type', TransactionType::PROFORMA)->delete();
$booking->transactions()->where('type', TransactionType::PROFORMA)->delete();
if($poTransaction) {
$this->updatesTransactionStatus->execute($poTransaction, ApprovalStatus::PENDING_SUBMISSION);