8 <h3>[% LxERP.t8('Stock for part #1', SELF.part.displayable_name) %][% IF SELF.part.ean %] ([% SELF.part.ean %])[% END %]</h3>
10 [% IF SELF.stock_empty && !SELF.part.bin_id %]
11 <p>[% 'Nothing stocked yet.' | $T8 %]</p>
13 <table class="tbl-list wi-moderate">
16 <th>[% 'Warehouse' | $T8 %]</th>
17 <th>[% 'Bin' | $T8 %]</th>
18 <th>[% 'Qty' | $T8 %]</th>
22 [% FOREACH wh = SELF.warehouses %]
23 [% FOREACH bin = wh.bins %]
24 [% # display any bins with stock and default bin %]
25 [% SET stock__set = SELF.stock_by_bin.${bin.id} %]
26 [% IF stock__set.sum > 0 || SELF.part.bin_id == bin.id %]
28 <td>[% bin.warehouse.description %]</td>
29 <td>[% bin.description %]</td>
30 <td class='numeric'>[% LxERP.format_amount(stock__set.sum, 2) %] [% SELF.part.unit %]</td>