Uodate store calculation

This commit is contained in:
weiweitoo
2018-07-26 11:06:28 +08:00
parent 74b84acf36
commit 2f63c27e67
+3 -15
View File
@@ -297,21 +297,9 @@ class BookingController extends Controller
$svcharge = 20.00;
}
// initial rmb to myr amount
$RMBinMYR = (($amount + $svcharge) / $rate);
// TODO : Should be remove this ?
// gst 0%
$gst = 0 * $RMBinMYR;
// Sales tax : 10 %
$sales_tax = 0.10 * $RMBinMYR;
// Billing fees : 1.5%
$billing = 0.015 * $RMBinMYR;
// Bank in amount
$bia = round($RMBinMYR + $gst + $sales_tax + $billing, 2);
$bia = round(round($amount + $svcharge / $rate,2)
+ round(round($amount + $svcharge / $rate,2) * $taxrate,2)
+ round(($amount + $svcharge) * $billingChargeRate, 2) , 2);
$booking = new Booking();
$booking->account_name = $request->input('account_name');