Browse Source

Merge branch 'dev' of http://192.168.1.41:3000/maixinrong/Calculation into dev

TonyKang 3 years ago
parent
commit
f1e96b29f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/sum_load.js

+ 1 - 1
app/lib/sum_load.js

@@ -190,7 +190,7 @@ class updateReviseGclTree extends loadGclBaseTree {
     getUpdateData() {
         const result = {update: [], errors: [], create: []};
         if (this.baseNodes.length === 0) {
-            result.update = [{id: this.parent.id, is_leaf: false}];
+            result.update = [{id: this.parent.id, ledger_id: this.parent.ledger_id, is_leaf: 0}];
         } else {
             for (const bn of this.baseNodes) {
                 if (bn.children && bn.children.length > 0) continue;