change transition structure 2

This commit is contained in:
2026-07-10 23:29:36 +03:30
parent 028c5d5938
commit 47a2f8e6bf
7 changed files with 226 additions and 1 deletions
@@ -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);