This commit is contained in:
2026-02-24 19:48:12 +01:00
parent a1a13a6846
commit 56f2c3a4a6
2 changed files with 4 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ class Fee(ModelSQL,ModelView):
if lqt:
return lqt[0].id
@fields.depends('unit','auto_calculation','mode','_parent_line.unit','_parent_line.lots','_parent_sale_line.unit','_parent_sale_line.lots','_parent_shipment_in.id')
@fields.depends('price','unit','auto_calculation','mode','_parent_line.unit','_parent_line.lots','_parent_sale_line.unit','_parent_sale_line.lots','_parent_shipment_in.id')
def on_change_with_quantity(self, name=None):
qt = None
unit = None

View File

@@ -796,10 +796,10 @@ class ShipmentIn(metaclass=PoolMeta):
"Point1PlaceKey": sh.from_location.get_places(),
"Point2PlaceKey": sh.to_location.get_places(),
"OrderReference": sh.reference,
"FeeTotalCost": fee.amount,
"FeeUnitPrice": fee.price,
"FeeTotalCost": float(fee.amount),
"FeeUnitPrice": float(fee.price),
"ContractNumbers": sh.number,
"OrderQuantityGW": fee.quantity,
"OrderQuantityGW": float(fee.quantity) if fee.quantity else float(1),
"NumberOfPackingBales": 1
}