ellisran 2 settimane fa
parent
commit
f990001ca4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {