Commit c21835f8d8ab61a52fef66c069514529091dd307
1 parent
8e066787
采购单据修改金额不改不含税金额
Showing
1 changed file
with
4 additions
and
1 deletions
src/components/Common/commonBusiness.js
| ... | ... | @@ -844,7 +844,10 @@ export function getCalculateMoneyNew(app, masterData, tableDataRow, type, sField |
| 844 | 844 | dNProductPrice = commonUtils.convertFixNum(dProductQty !== 0 ? dNProductMoney / dProductQty : dNProductPrice, dNetPrice); /* 产品价格 */ |
| 845 | 845 | const dProductForeignPrice = commonUtils.convertFixNum(dProductQty !== 0 ? dProductForeignMoney / dProductQty : 0, dNetPrice); /* 外币价格 */ |
| 846 | 846 | const dProductPrice = commonUtils.convertFixNum(dProductQty !== 0 ? dProductMoney / dProductQty : 0, dNetPrice); /* 本位币价格 */ |
| 847 | - const dProductNoTaxMoney = commonUtils.convertFixNum(dProductMoney / (1 + (dTaxRate / 100)), dNetMoney); /* 不含税金额 */ | |
| 847 | + let dProductNoTaxMoney = tableDataRow[`d${type}NoTaxMoney`] /* 不含税金额 */ | |
| 848 | + if (!app?.currentPane?.sModelsType?.includes('purchase/purchasecheck')) { | |
| 849 | + dProductNoTaxMoney = commonUtils.convertFixNum(dProductMoney / (1 + (dTaxRate / 100)), dNetMoney); | |
| 850 | + } | |
| 848 | 851 | const dProductNoTaxPrice = commonUtils.convertFixNum(dProductQty !== 0 ? dProductNoTaxMoney / dProductQty : 0, dNetPrice); /* 不含税价 */ |
| 849 | 852 | const dProductTaxMoney = commonUtils.convertFixNum(dProductMoney - dProductNoTaxMoney, dNetMoney); /* 税额 */ |
| 850 | 853 | // const dProductForeignMoney = commonUtils.convertFixNum(dCurrencyRate !== 0 ? dProductMoney / dCurrencyRate : 0, dNetMoney); /* 外币金额 */ | ... | ... |