diff --git a/modules/purchase_trade/stock.py b/modules/purchase_trade/stock.py index a01c771..85f627d 100755 --- a/modules/purchase_trade/stock.py +++ b/modules/purchase_trade/stock.py @@ -803,8 +803,8 @@ class ShipmentIn(metaclass=PoolMeta): "FeeTotalCost": float(fee.amount), "FeeUnitPrice": float(fee.price), "ContractNumbers": sh.number, - "OrderQuantityGW": float(fee.quantity) if fee.quantity else float(1), - "NumberOfPackingBales": 1 + "OrderQuantityGW": float(sh.get_quantity()) if sh.get_quantity() else float(1), + "NumberOfPackingBales": int(fee.quantity) if fee.quantity else int(1) } logger.info("PAYLOAD:%s",so_payload)