clean up development

This commit is contained in:
omair saleh
2022-03-13 00:13:26 +08:00
parent a39c84586b
commit ea83ba13d4
@@ -87,7 +87,7 @@ class CreateBookingRefundLogic extends AbstractControllerLogic
$refund = $transaction->transactions()->refunds()->sum('amount');
if($refund + $request->input('amount') > $transaction->amount) throw new MalformedRequestException('Your refund must not be greater than '. $transaction->original_amount .'.');
if($refund + $request->input('amount') > $transaction->original_amount) throw new MalformedRequestException('Your refund must not be greater than '. $transaction->original_amount .'.');
$transactionRefundCalculationObject = new TransactionRefundCalculationObject($booking, $transaction, $request->input('amount'));
$transactionRefundCalculationObject->init();