|
[%- USE LxERP -%][% USE L %][% USE HTML %][%- USE JavaScript -%][% USE T8 %][%- USE Dumper %]
|
|
|
|
<div style="padding-bottom: 15px">
|
|
<table style="width: 100%" border="0px" ><tbody>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Description') %]</b></td><td colspan="3">[% part.description %]</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Default Warehouse') %]</b></td><td>[% part.warehouse.description %]</td>
|
|
<td><b>[% LxERP.t8('Default Bin') %]</b></td><td>[% part.bin.description %]</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('ROP') %]</b></td><td>[% part.rop_as_number %]</td>
|
|
</tr>
|
|
<tr>
|
|
[%- IF stock_amounts.size %]
|
|
<td colspan="4"><table style="width: 100%">
|
|
<tr class='listheading'>
|
|
<th class="listheading">[% 'Warehouse' | $T8 %]</th>
|
|
<th class="listheading">[% 'Bin' | $T8 %]</th>
|
|
<th class="listheading">[% 'Chargenumber' | $T8 %]</th>
|
|
<th class="listheading">[% 'Qty' | $T8 %]</th>
|
|
<th class="listheading">[% 'Unit' | $T8 %]</th>
|
|
</tr>
|
|
[% FOREACH stock = stock_amounts %]
|
|
<tr class='listrow'>
|
|
<td >[% HTML.escape(stock.warehouse_description) %]</td>
|
|
<td >[% IF stock.order_link %]<a target="_blank" href="[% stock.order_link %]">[% END %]
|
|
[% HTML.escape(stock.bin_description) %]
|
|
[% IF stock.order_link %]</a>[% END %]
|
|
</td>
|
|
<td >[% HTML.escape(stock.chargenumber) %]</td>
|
|
<td class='numeric'>[% LxERP.format_amount(stock.qty, dec) %]</td>
|
|
<td >[% HTML.escape(stock.unit) %]</td>
|
|
</tr>
|
|
[% IF stock.wh_lead != stock.warehouse_description %]
|
|
<tr class='listheading'>
|
|
<th class="listheading" >[% HTML.escape(stock.warehouse_description) %]</th>
|
|
<td></td>
|
|
<td></td>
|
|
<td class='numeric bold'>[% LxERP.format_amount(stock.wh_run_qty, dec) %]</td>
|
|
<td></td>
|
|
</tr>
|
|
[% END %]
|
|
[% IF loop.last %]
|
|
<tr class='listheading'>
|
|
<th class="listheading">[% 'Total' | $T8 %]</th>
|
|
<td></td>
|
|
<td></td>
|
|
<td class='numeric bold'>[% LxERP.format_amount(stock.run_qty, dec) %]</td>
|
|
<td></td>
|
|
</tr>
|
|
[% END %]
|
|
[% END %]
|
|
[% ELSE %]
|
|
<td>
|
|
<p>[% 'No transactions yet.' | $T8 %]</p>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Sum Amount') %]</b></td><td>[% LxERP.format_amount(sum, 2) %] [% part.unit %]</td>
|
|
<td rowspan="5">
|
|
[%- IF part.image && INSTANCE_CONF.get_parts_show_image %]
|
|
<a href="[% part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% part.image | html %]"/></a>
|
|
[% END %]
|
|
</td>
|
|
<td rowspan="5">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Not delivered amount') %]</b></td><td colspan="3">[% LxERP.format_amount(not_delivered, 2) %] [% part.unit %]</td></tr>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Ordered, but not delivered (purchase)') %]</b></td><td colspan="3">[% LxERP.format_amount(ordered, 2) %] [% part.unit %]</td></tr>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Available amount') %]</b></td><td colspan="3">[% LxERP.format_amount(part.onhandqty, 2) %] [% part.unit %]</td></tr>
|
|
</tr>
|
|
<tr>
|
|
<td><b>[% LxERP.t8('Consume average') %]</b></td><td colspan="3">[% LxERP.format_amount(average, 2) %] [% part.unit %] [% LxERP.t8('per month') %]</td></tr>
|
|
<tr><td colspan="4" nowrap>([% LxERP.t8('in the time between') %] [% fromdate.to_kivitendo %] - [% todate.to_kivitendo %])</td>
|
|
</tr>
|
|
<tr>
|
|
<td>[%- L.button_tag("return \$('#detail_menu').dialog('close');", LxERP.t8('Close Details'), class => "submit") %]</td>
|
|
</tr>
|
|
</tbody></table>
|
|
</div>
|
|
<div id="print_options" >
|
|
<form id="print_options_form">
|
|
[% print_options %]
|
|
<br>
|
|
[% L.button_tag('kivi.Part.print_from_showdetail(' _ part.id _ ')', LxERP.t8('Print')) %]
|
|
</form>
|
|
</div>
|
|
|