Procházet zdrojové kódy

清单汇总算法调整

MaiXinRong před 5 roky
rodič
revize
765f9680d1
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;