From c0d0a7d35f041290e1db0f3a326996c71ffae392 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期三, 15 一月 2025 08:57:39 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/mm/FinishedGoodsInventory.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/mm/FinishedGoodsInventory.xml b/north-glass-erp/src/main/resources/mapper/mm/FinishedGoodsInventory.xml
index 3063c2a..3a2adbd 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/FinishedGoodsInventory.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/FinishedGoodsInventory.xml
@@ -588,7 +588,7 @@
         left join sd.order_detail od on fc.order_id=od.order_id and fc.order_number=od.order_number inner join sd.`order` o on
         o.order_id=fc.order_id
         <where>
-                and fc.received_quantity <![CDATA[<]]> fc.min_inventory_quantity
+                and fc.received_quantity <![CDATA[<]]> fc.min_inventory_quantity and o.create_order>0
             <if test="flowCard.order.orderId != null and flowCard.order.orderId != ''">
                 and o.order_id regexp #{flowCard.order.orderId}
             </if>
@@ -646,7 +646,7 @@
         select fc.order_number as order_number,fc.process_id from pp.flow_card fc left join sd.order_detail od on
         fc.order_id=od.order_id and fc.order_number=od.order_number inner join sd.`order` o on o.order_id=fc.order_id
         <where>
-            and fc.received_quantity <![CDATA[<]]> fc.inventory_quantity
+            and fc.received_quantity <![CDATA[<]]> fc.inventory_quantity and o.create_order>0
             <if test="flowCard.order.orderId != null and flowCard.order.orderId != ''">
                 and o.order_id regexp #{flowCard.order.orderId}
             </if>
@@ -722,7 +722,7 @@
         left join sd.order_detail od on fgi.order_id = od.order_id and fgi.order_number = od.order_number
         left join sd.`order` o on fgi.order_id = o.order_id
         <where>
-                and fgi.status = 0 and fgi.quantity_available>0
+                and fgi.status = 0 and fgi.quantity_available>0 and o.create_order>0
             <if test="finishedGoodsInventory.orderDetail.width != null and finishedGoodsInventory.orderDetail.width != ''">
                 and od.width regexp #{finishedGoodsInventory.orderDetail.width}
             </if>
@@ -796,7 +796,7 @@
         left join sd.order_detail od on fgi.order_id = od.order_id and fgi.order_number = od.order_number
         left join sd.`order` o on fgi.order_id = o.order_id
         <where>
-                and fgi.status = 0 and  fgi.quantity_available>0
+                and fgi.status = 0 and  fgi.quantity_available>0 and o.create_order>0
             <if test="finishedGoodsInventory.orderDetail.width != null and finishedGoodsInventory.orderDetail.width != ''">
                 and od.width regexp #{finishedGoodsInventory.orderDetail.width}
             </if>

--
Gitblit v1.8.0