This commit is contained in:
2026-03-16 09:52:15 +01:00
parent 8398a8c212
commit 2183d8d5a4

View File

@@ -365,7 +365,13 @@ class Sale(metaclass=PoolMeta):
shipment = self.lines[0].lots[1].lot_shipment_in
lot = self.lines[0].lots[1].lot_name
if shipment:
info = 'B/L ' + shipment.bl_number
info = ''
if shipment.bl_number:
info += ' B/L ' + shipment.bl_number
if shipment.supplier:
info += ' BY ' + shipment.supplier.name
if shipment.vessel:
info += ' (' + shipment.vessel.vessel_name + ')'
if shipment.container and shipment.container[0].container_no:
id = 1
for cont in shipment.container:
@@ -376,7 +382,7 @@ class Sale(metaclass=PoolMeta):
else:
info += ' unnamed'
id += 1
info += ' (LOT ' + lot + ')'
# info += ' (LOT ' + lot + ')'
if shipment.note:
info += ' ' + shipment.note
return info