[%- USE HTML %]
[%- USE LxERP %]
[%- USE L %]
[%- USE T8 %]
[%- IF SELF.part.id %]
[% LxERP.t8('Stock for part #1', SELF.part.displayable_name) %][%- IF SELF.part.ean -%] ([%- SELF.part.ean -%])[%- END -%]
[%- IF SELF.stock_empty && !SELF.part.bin_id %]
[% 'Nothing stocked yet.' | $T8 %]
[%- ELSE %]
[% 'Warehouse' | $T8 %] |
[% 'Bin' | $T8 %] |
[% 'Qty' | $T8 %] |
[%- FOREACH wh = SELF.warehouses -%]
[%- FOREACH bin = wh.bins -%]
[%#- display any bins with stock and default bin -%]
[%- SET stock__set = SELF.stock_by_bin.${bin.id} -%]
[%- IF stock__set.sum > 0 || SELF.part.bin_id == bin.id -%]
[% bin.warehouse.description %] |
[% bin.description %] |
[% LxERP.format_amount(stock__set.sum, 2) %] [%- SELF.part.unit -%] |
[%- END -%]
[%- END -%]
[%- END %]
[%- END %]
[%- END %]