MaiXinRong 1 hari lalu
induk
melakukan
2c6022ea0f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/service/cost_stage_analysis.js

+ 1 - 1
app/service/cost_stage_analysis.js

@@ -175,7 +175,7 @@ module.exports = app => {
                     ln[prop] = 0;
                 }
                 insertLedgerData.push(ln);
-                if (node.detail) {
+                if (node.detail && node.detail.length > 0) {
                     for (const [i, d] of node.detail.entries()) {
                         const idd = {
                             id: this.uuid.v4(), tender_id: stage.tid, stage_id: stage.id,