fix sku purchase stock in order

pull/8040/head
Gauthier LO 2024-12-13 15:14:58 +01:00
parent dd73b5edc2
commit 007a52e932
2 changed files with 6 additions and 0 deletions

View File

@ -183,6 +183,7 @@
JOIN client c ON s.owner_id = c.id
WHERE c.id = #{clientId}
AND po.erp_status IN ('1','2')
AND po.can_send = 1
AND poc.erp_status IN ('1','2')
GROUP BY sku_id
)
@ -331,6 +332,7 @@
JOIN client c ON s.owner_id = c.id
WHERE c.id = #{clientId}
AND po.erp_status IN ('1','2')
AND po.can_send = 1
AND poc.erp_status IN ('1','2')
GROUP BY sku_id
)
@ -411,6 +413,7 @@
JOIN client c ON s.owner_id = c.id
WHERE c.id = #{clientId}
AND po.erp_status IN ('1','2')
AND po.can_send = 1
AND poc.erp_status IN ('1','2')
GROUP BY sku_id
)
@ -475,6 +478,7 @@
JOIN client c ON s.owner_id = c.id
WHERE c.id = #{clientId}
AND po.erp_status IN ('1','2')
AND po.can_send = 1
AND poc.erp_status IN ('1','2')
GROUP BY sku_id
)

View File

@ -206,6 +206,7 @@ public class PurchaseOrderServiceImpl extends ServiceImpl<PurchaseOrderMapper, P
}
/**
* Used by clients only
* Generated a purchase order based on sku quantity, these sku are bought
* for some platform orders, their quantity may higher than those in platform
* orders. In case of higher, extra quantity are recorded to client's inventory.
@ -388,6 +389,7 @@ public class PurchaseOrderServiceImpl extends ServiceImpl<PurchaseOrderMapper, P
/**
* Used for generating purchase order from COMPLETE invoicing
* Generated a purchase order based on sku quantity, these sku are bought
* for some platform orders, their quantity may higher than those in platform
* orders. In case of higher, extra quantity are recorded to client's inventory.