From be65feb64970908c7f0a287faa7a53612686dd43 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 14 十一月 2025 15:01:32 +0800
Subject: [PATCH] 销售台账、采购台账添加产品表单调整
---
src/utils/summarizeTable.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/utils/summarizeTable.js b/src/utils/summarizeTable.js
index 1ad480d..3690dd0 100644
--- a/src/utils/summarizeTable.js
+++ b/src/utils/summarizeTable.js
@@ -42,7 +42,8 @@
};
// 涓嶅惈绋庢�讳环璁$畻
const calculateTaxExclusiveTotalPrice = (taxInclusiveTotalPrice, taxRate) => {
- const taxRateDecimal = taxRate / 100;
+ const taxRateNumber = taxRate?Number(taxRate):0;
+ const taxRateDecimal = taxRateNumber / 100;
return (taxInclusiveTotalPrice / (1 + taxRateDecimal)).toFixed(2);
};
// 鍚◣鎬讳环璁$畻
--
Gitblit v1.9.3