bug fixed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user