From 02ecd75c6ba81122086b9cf75a2cf6d703eb3020 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期五, 23 五月 2025 18:01:18 +0800
Subject: [PATCH] 采购管理>供应商往来=>书写页面样式以及页面交互逻辑 采购管理>付款登记=>编辑无登记人问题

---
 src/utils/summarizeTable.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/utils/summarizeTable.js b/src/utils/summarizeTable.js
index 3b3a178..ae6e975 100644
--- a/src/utils/summarizeTable.js
+++ b/src/utils/summarizeTable.js
@@ -34,6 +34,10 @@
         }
     });
     return sums;
-};
+}
+const calculateTaxExclusiveTotalPrice = (taxInclusiveTotalPrice, taxRate) => {
+    const taxRateDecimal = taxRate / 100;
+    return (taxInclusiveTotalPrice / (1 + taxRateDecimal)).toFixed(2);
+}
 // 瀵煎嚭鍑芥暟渚涘叾浠栨枃浠朵娇鐢�
-export { summarizeTable };
\ No newline at end of file
+export { summarizeTable, calculateTaxExclusiveTotalPrice };
\ No newline at end of file

--
Gitblit v1.9.3