Explorar el Código

清单汇总算法调整

MaiXinRong hace 5 años
padre
commit
765f9680d1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;