price calulator changed 5

This commit is contained in:
2026-07-02 20:58:29 +03:30
parent 148acafdc0
commit 7381baca0d
5 changed files with 70 additions and 11 deletions
+3 -1
View File
@@ -338,6 +338,7 @@ import {
calcRialFromLockedGram,
calcSellGoldDebit,
calcSellTargetCash,
calcTradeTargetCash,
feeDeductFromGold,
loadServiceFeeFromSettings,
serviceFeePercentage,
@@ -803,7 +804,8 @@ async function ok() {
direction: isBuy.value ? 1 : 2,
price: Math.round(unitPrice.value),
amount: orderGoldAmount.value,
target_cash: calcSellTargetCash(
target_cash: calcTradeTargetCash(form.value.goldCash, inputLock.value)
?? calcSellTargetCash(
form.value.goldCash,
form.value.goldValue,
unitPrice.value,