added percent in product price 4
This commit is contained in:
@@ -19,7 +19,8 @@ class AssetSummaryService
|
||||
];
|
||||
|
||||
public function __construct(
|
||||
private readonly ConfigService $configService
|
||||
private readonly ConfigService $configService,
|
||||
private readonly WalletBalanceService $walletBalanceService
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -53,7 +54,7 @@ class AssetSummaryService
|
||||
$this->buildInventoryCards($userWallets, $catalogById, $mainWalletProductIds, $mainWallet),
|
||||
);
|
||||
$metalTotals = $this->buildMetalTotals($userWallets, $mainWallet, $metalIds, $weightUnit, $catalogById, $metalsWithProductWallet, $mainWalletProductIds);
|
||||
$cashWallet = (float) ($mainWallet?->cash ?? 0);
|
||||
$cashWallet = $this->walletBalanceService->mainWalletCash($userWallets);
|
||||
$assetsRialValue = $this->sumAssetsRialValue(
|
||||
$metalTotals,
|
||||
$userWallets,
|
||||
|
||||
Reference in New Issue
Block a user