change transition structure 2
This commit is contained in:
@@ -275,6 +275,9 @@ class SingleOrderController extends Controller
|
||||
$data['payment_amount'] = $data['total_price'] + $data['service_charge_price'];
|
||||
}
|
||||
|
||||
// سمت کسر کارمزد برای گزارش تفکیکشده در داشبورد
|
||||
$data['fee_asset'] = $rialLocked ? 'gold' : 'rial';
|
||||
|
||||
$this->enforceProductOrderLimits($data);
|
||||
|
||||
if (!empty($data['first_buy']) && ($minFirstBuy = Setting::where('is_active', 1)->where('key', 'min_first_buy')->value('value'))) {
|
||||
@@ -514,6 +517,9 @@ class SingleOrderController extends Controller
|
||||
$goldDebit = $data['amount'];
|
||||
}
|
||||
|
||||
// سمت کسر کارمزد برای گزارش تفکیکشده در داشبورد
|
||||
$data['fee_asset'] = $rialLocked ? 'gold' : 'rial';
|
||||
|
||||
$grossTotal = $data['amount'] * $data['price'];
|
||||
$this->enforceProductOrderLimits($data, (float) $grossTotal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user