Selaa lähdekoodia

修复汇总bug

ellisran 2 viikkoa sitten
vanhempi
commit
f990001ca4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {