1 [%- USE LxERP -%][% USE L %][% USE HTML %][%- USE JavaScript -%][% USE T8 %][%- USE Dumper %]
3 <div style="padding-bottom: 15px">
4 <table style="width: 100%" border="0px" ><tbody>
6 <td><b>[% LxERP.t8('Description') %]</b></td><td colspan="3">[% part.description %]</td>
9 <td><b>[% LxERP.t8('Default Warehouse') %]</b></td><td>[% part.warehouse.description %]</td>
10 <td><b>[% LxERP.t8('Default Bin') %]</b></td><td>[% part.bin.description %]</td>
13 <td><b>[% LxERP.t8('ROP') %]</b></td><td>[% part.rop_as_number %]</td>
16 [%- IF stock_amounts.size %]
17 <td colspan="4"><table style="width: 100%">
18 <tr class='listheading'>
19 <th class="listheading">[% 'Warehouse' | $T8 %]</th>
20 <th class="listheading">[% 'Bin' | $T8 %]</th>
21 <th class="listheading">[% 'Chargenumber' | $T8 %]</th>
22 <th class="listheading">[% 'Qty' | $T8 %]</th>
23 <th class="listheading">[% 'Unit' | $T8 %]</th>
25 [% FOREACH stock = stock_amounts %]
27 <td >[% HTML.escape(stock.warehouse_description) %]</td>
28 <td >[% IF stock.order_link %]<a target="_blank" href="[% stock.order_link %]">[% END %]
29 [% HTML.escape(stock.bin_description) %]
30 [% IF stock.order_link %]</a>[% END %]
32 <td >[% HTML.escape(stock.chargenumber) %]</td>
33 <td class='numeric'>[% LxERP.format_amount(stock.qty, dec) %]</td>
34 <td >[% HTML.escape(stock.unit) %]</td>
36 [% IF stock.wh_lead != stock.warehouse_description %]
37 <tr class='listheading'>
38 <th class="listheading" >[% HTML.escape(stock.warehouse_description) %]</th>
41 <td class='numeric bold'>[% LxERP.format_amount(stock.wh_run_qty, dec) %]</td>
46 <tr class='listheading'>
47 <th class="listheading">[% 'Total' | $T8 %]</th>
50 <td class='numeric bold'>[% LxERP.format_amount(stock.run_qty, dec) %]</td>
57 <p>[% 'No transactions yet.' | $T8 %]</p>
62 <td><b>[% LxERP.t8('Sum Amount') %]</b></td><td>[% LxERP.format_amount(sum, 2) %] [% part.unit %]</td>
64 [%- IF part.image && INSTANCE_CONF.get_parts_show_image %]
65 <a href="[% part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% part.image | html %]"/></a>
72 <td><b>[% LxERP.t8('Not delivered amount') %]</b></td><td colspan="3">[% LxERP.format_amount(not_delivered, 2) %] [% part.unit %]</td></tr>
75 <td><b>[% LxERP.t8('Ordered, but not delivered (purchase)') %]</b></td><td colspan="3">[% LxERP.format_amount(ordered, 2) %] [% part.unit %]</td></tr>
78 <td><b>[% LxERP.t8('Available amount') %]</b></td><td colspan="3">[% LxERP.format_amount(part.onhandqty, 2) %] [% part.unit %]</td></tr>
81 <td><b>[% LxERP.t8('Consume average') %]</b></td><td colspan="3">[% LxERP.format_amount(average, 2) %] [% part.unit %] [% LxERP.t8('per month') %]</td></tr>
82 <tr><td colspan="4" nowrap>([% LxERP.t8('in the time between') %] [% fromdate.to_kivitendo %] - [% todate.to_kivitendo %])</td>
85 <td>[%- L.button_tag("return \$('#detail_menu').dialog('close');", LxERP.t8('Close Details'), class => "submit") %]</td>
89 <div id="print_options" >
90 <form id="print_options_form">
93 [% L.button_tag('kivi.Part.print_from_showdetail(' _ part.id _ ')', LxERP.t8('Print')) %]