From eaebfc75ebda8ec68bd5fd693f9e9325e23efdec Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 06 十二月 2022 17:02:42 +0800
Subject: [PATCH] 金蝶同步 税率表 收款条件表 付款条件表 库存状态表

---
 APSM/装配智能排程/Sc_ICMOAutoSortBill.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git "a/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs" "b/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs"
index 18e8fa9..ffc531e 100644
--- "a/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs"
+++ "b/APSM/\350\243\205\351\205\215\346\231\272\350\203\275\346\216\222\347\250\213/Sc_ICMOAutoSortBill.cs"
@@ -692,7 +692,7 @@
                         //判断资源剩余工时,是否大于 生产周期
                         if (DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[j]["剩余工时"]) > sLeftProdTimes)
                         {
-                            if (iLeftQty > 0)
+                            if (iLeftQty > 0) // 生产订单剩余数量
                             {
                                 //在本资源上生产
                                 //获取该生产资源的剩余工时进行排程。
@@ -705,7 +705,7 @@
                                 dsSub = Sc_ICMOSortBillFun.GetWorkSourceTimeBySource(oCn, lSourceID);
                                 if (dsSub == null || dsSub.Tables[0].Rows.Count == 0)
                                 {
-                                    continue;
+                                    continue;//如果没有剩余则 执行下一个生产订单
                                 }
                                 if (dsSub != null  )//不加班排程
                                 {

--
Gitblit v1.9.1