Description |
I should reserve schedule quantity when contract is used and reduce balance when posted. Similar to inventory receipt.
Call the below sp in uspICPostInventoryShipmentIntegrations sp
IF @OrderType = @INT_ORDER_TYPE_SALES_CONTRACT
BEGIN
EXEC dbo.uspCTShipped @ItemsFromInventoryShipment, @intEntityUserSecurityId
GOTO _Exit;
END
Also change the below code
UPDATE @ItemsFromInventoryShipment
SET dblQty = dblQty * CASE WHEN @ysnPost = 1 THEN -1 ELSE 1 END
to
UPDATE @ItemsFromInventoryShipment
SET dblQty = dblQty * CASE WHEN @ysnPost = 1 THEN 1 ELSE -1 END
|