瀏覽代碼

修复汇总bug

ellisran 2 周之前
父節點
當前提交
f990001ca4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/public/js/change_revise.js

+ 1 - 1
app/public/js/change_revise.js

@@ -299,7 +299,7 @@ $(document).ready(() => {
         treeSetting.calcFields.push('deal_tp');
     }
     treeSetting.calcFun = function (node) {
-        if (node && node.b_code) {
+        if (node && node.b_code && node.is_leaf) {
             const posData = pos.getLedgerPos(node.id) || [];
             let camount = ZhCalc.round(node.camount, findDecimal(node.unit)) || 0;
             if (posData.length > 0) {