mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'refund-booking' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0
This commit is contained in:
@@ -132,8 +132,14 @@ class CreateBookingRefundLogic extends AbstractControllerLogic
|
|||||||
|
|
||||||
$service_charges_to_refund = $isFullyRefund ? $quotationBeforeCurrentRefund->getServiceCharge() : $quotationBeforeCurrentRefund->getServiceCharge() - $quotationAfterRefund->getServiceCharge();
|
$service_charges_to_refund = $isFullyRefund ? $quotationBeforeCurrentRefund->getServiceCharge() : $quotationBeforeCurrentRefund->getServiceCharge() - $quotationAfterRefund->getServiceCharge();
|
||||||
|
|
||||||
// refund service charges if is fully refund
|
// refund service charges if booking is not E2E
|
||||||
$refundTotal = $refundAmount + $service_charges_to_refund + $transaction->tax;
|
$refundTotal = $refundAmount;
|
||||||
|
|
||||||
|
if ($booking->service_id !== 5) {
|
||||||
|
$refundTotal = $refundTotal + $service_charges_to_refund + $transaction->tax;
|
||||||
|
} else {
|
||||||
|
$service_charges_to_refund = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$object = new TransactionObject($billNumber, TransactionType::REFUND, 1, $booking->company->id,
|
$object = new TransactionObject($billNumber, TransactionType::REFUND, 1, $booking->company->id,
|
||||||
1, PaymentMethodType::CASH,
|
1, PaymentMethodType::CASH,
|
||||||
|
|||||||
Reference in New Issue
Block a user