16.03.26
This commit is contained in:
@@ -365,7 +365,13 @@ class Sale(metaclass=PoolMeta):
|
|||||||
shipment = self.lines[0].lots[1].lot_shipment_in
|
shipment = self.lines[0].lots[1].lot_shipment_in
|
||||||
lot = self.lines[0].lots[1].lot_name
|
lot = self.lines[0].lots[1].lot_name
|
||||||
if shipment:
|
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:
|
if shipment.container and shipment.container[0].container_no:
|
||||||
id = 1
|
id = 1
|
||||||
for cont in shipment.container:
|
for cont in shipment.container:
|
||||||
@@ -376,7 +382,7 @@ class Sale(metaclass=PoolMeta):
|
|||||||
else:
|
else:
|
||||||
info += ' unnamed'
|
info += ' unnamed'
|
||||||
id += 1
|
id += 1
|
||||||
info += ' (LOT ' + lot + ')'
|
# info += ' (LOT ' + lot + ')'
|
||||||
if shipment.note:
|
if shipment.note:
|
||||||
info += ' ' + shipment.note
|
info += ' ' + shipment.note
|
||||||
return info
|
return info
|
||||||
|
|||||||
Reference in New Issue
Block a user