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) {