mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix duplicated invoices bug
This commit is contained in:
@@ -97,6 +97,11 @@ class CreateInvoiceTransactionProcessor
|
||||
*/
|
||||
public function execute(Booking $booking)
|
||||
{
|
||||
|
||||
if ($booking->status === ApprovalStatus::COMPLETED) {
|
||||
return;
|
||||
}
|
||||
|
||||
$payment_amount = $this->calculatesBookingTransferredAmount->execute($booking, $booking->fix_currency_id);
|
||||
$booking_amount = $booking->fix_amount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user