Forráskód Böngészése

清单汇总算法调整

MaiXinRong 5 éve
szülő
commit
765f9680d1
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      app/public/js/gcl_gather.js

+ 1 - 0
app/public/js/gcl_gather.js

@@ -306,6 +306,7 @@ const gclGatherModel = (function () {
         if (deal && deal.length > 0) {
             for (const node of deal) {
                 node.b_code = node.code;
+                if (!node.quantity || !node.unit_price) continue;
                 const gcl = getGclNode(node);
                 gcl.deal_bills_qty = node.quantity;
                 gcl.deal_bills_tp = node.total_price;