for each="shipment in records"
choose test="shipment.state"
when test="'draft'"
Draft Restocking List
/when
when test="'cancelled'"
Cancelled Restocking List
/when
otherwise
Restocking List N°: shipment.number
/otherwise
/choose
Reference: shipment.origins or ''', ' if (shipment.origins and shipment.reference) else ''shipment.reference or ''
Supplier: shipment.supplier.rec_name
Planned Date: shipment.planned_date and format_date(shipment.planned_date, user.language) or ''
Warehouse: shipment.warehouse.rec_name
From Location	To Location	Product	Quantity
for each="move in moves(shipment)"
move.from_location_name	move.to_location_name	move.product.rec_name	format_number_symbol(move.quantity, user.language, move.unit, digits=move.unit.digits)
/for
/for
if test="company and company.header"
for each="line in company.header_used.split('\n')"
line
/for
/if
company.rec_name if company else ''
if test="company and company.footer"
for each="line in company.footer_used.split('\n')"
2/2