bug fixed

This commit is contained in:
2026-06-17 14:05:44 +03:30
parent c3b868c6b5
commit 34298d3bc5
2 changed files with 33 additions and 5 deletions
@@ -102,13 +102,13 @@ class CustomerController extends Controller
if (!($walletSingle->product->group_type == "سکه")) {
$count_silver += self::productLineWeightToGrams($walletSingle->product, $walletSingle->gold);
}
$count_cash_from_silver += ($walletSingle->product->price * $walletSingle->product->amount) * $walletSingle->gold;
$count_cash_from_silver += ($walletSingle->product->price * self::productPriceMultiplier($walletSingle->product)) * $walletSingle->gold;
$count_product += $walletSingle->gold;
} elseif ($walletSingle->product->metal_id == 3) {
if (!($walletSingle->product->group_type == "سکه")) {
$count_copper += self::productLineWeightToGrams($walletSingle->product, $walletSingle->gold);
}
$count_cash_from_copper += ($walletSingle->product->price * $walletSingle->product->amount) * $walletSingle->gold;
$count_cash_from_copper += ($walletSingle->product->price * self::productPriceMultiplier($walletSingle->product)) * $walletSingle->gold;
$count_product += $walletSingle->gold;
}
} else {