Explorar o código

物资-领用审批时,库存显示调整

huangguoce hai 11 horas
pai
achega
f2362bfaa2

+ 2 - 5
jeeplus-modules/jeeplus-psi-management/src/main/java/com/jeeplus/psimanage/collect/mapper/xml/PsiCollectDetailedMapper.xml

@@ -19,11 +19,8 @@
                c.spec,
         su.name AS recipientAgent, su.id AS recipientAgentId, so.name AS recipientOffice,
         d.id AS collectTypeId, d.name AS collectType,
-               IFNULL(
-                       SUM(trade_number) - (b.collect_number / c.spec),
-                       SUM(trade_number)
-               ) AS surplusNumber,
-                a.is_return
+        a.current_inventory AS surplusNumber,
+        a.is_return
              FROM psi_management_collect_detailed a
              LEFT JOIN sys_user su
              ON a.recipient_agent = su.id