Sin Yee requested for this business logic to be removed --> refund service charges if booking is not E2E

This commit is contained in:
Dillon Ngo
2026-06-24 20:14:31 +08:00
parent 91a2575c03
commit f749d568a2
@@ -146,14 +146,19 @@ class CreateBookingRefundLogic extends AbstractControllerLogic
$service_charges_to_refund = $isFullyRefund ? $quotationBeforeCurrentRefund->getServiceCharge() : $quotationBeforeCurrentRefund->getServiceCharge() - $quotationAfterRefund->getServiceCharge();
}
// refund service charges if booking is not E2E
$refundTotal = $refundAmount;
if ($booking->service_id !== 5) {
$refundTotal = $refundTotal + $service_charges_to_refund + $transaction->tax;
} else {
$service_charges_to_refund = 0;
}
// refund service charges if booking is not E2E - starts
// if ($booking->service_id !== 5) {
// $refundTotal = $refundTotal + $service_charges_to_refund + $transaction->tax;
// } else {
// $service_charges_to_refund = 0;
// }
// refund service charges if booking is not E2E - ends
//Reinstate refund service charges to all services, no checking if it is E2E or otherwise
$refundTotal = $refundTotal + $service_charges_to_refund + $transaction->tax;
$object = new TransactionObject($billNumber, TransactionType::REFUND, 1, $booking->company->id,
1, PaymentMethodType::CASH,