[% USE HTML %] [% USE LxERP %] [% USE T8 %] [%- IF !TABDIALOG %]

[% 'Price information' | $T8 %]

[%- UNLESS part_info.type == 'service' %] [%- END %]
[% 'Part Number' | $T8 %]: [% HTML.escape(part_info.partnumber) %]
[% 'Description' | $T8 %]: [% HTML.escape(part_info.description) %]
[% 'Stocked' | $T8 %]: [% HTML.escape(LxERP.format_amount_units(stocked, part_info.unit, part_info.unit)) %]

[%- END %]

[%- SET custom_texts = { sales_order => { head => LxERP.t8('Sales Orders'), empty => LxERP.t8('This part has not been used in a sales order yet.'), date => LxERP.t8('Order Date'), number => LxERP.t8('Order Number'), vc => LxERP.t8('Customer'), }, sales_quotation => { head => LxERP.t8('Quotations'), empty => LxERP.t8('This part has not been used in a quotation yet.'), date => LxERP.t8('Quotation Date'), number => LxERP.t8('Quotation Number'), vc => LxERP.t8('Customer'), }, purchase_order => { head => LxERP.t8('Purchase Orders'), empty => LxERP.t8('This part has not been used in a purchase order yet.'), date => LxERP.t8('Order Date'), number => LxERP.t8('Order Number'), vc => LxERP.t8('Vendor'), }, request_quotation => { head => LxERP.t8('RFQs'), empty => LxERP.t8('This part has not been used in a request quotation yet.'), date => LxERP.t8('Quotation Date'), number => LxERP.t8('Quotation Number'), vc => LxERP.t8('Vendor'), }, } %] [%- FOREACH type = ['sales_order', 'sales_quotation', 'purchase_order', 'request_quotation'] %] [%- IF !PRICE_INFO.$type.size %] [%- ELSE %] [%- FOREACH row = PRICE_INFO.$type %] [%- END %] [%- END %] [%- END %]
[% custom_texts.$type.head %]
[% custom_texts.$type.empty %]
[% custom_texts.$type.date %] [% custom_texts.$type.number %] [% custom_texts.$type.vc %] [% 'Delivered' | $T8 %] [% 'Quantity' | $T8 %] [% 'Unit price' | $T8 %] [% 'Discount' | $T8 %] [% 'Line total' | $T8 %]
[% HTML.escape(row.date) %] [% HTML.escape(row.number) %] [% HTML.escape(row.vc) %] [% HTML.escape(LxERP.format_amount(row.ship)) %] [% HTML.escape(row.unit) %] [% HTML.escape(LxERP.format_amount(row.qty)) %] [% HTML.escape(row.unit) %] [% HTML.escape(LxERP.format_amount(row.sellprice, 2)) %] [% HTML.escape(LxERP.format_amount(row.discount * 100)) %] [% HTML.escape(LxERP.format_amount(row.linetotal, 2)) %]

[%- IF !TABDIALOG %] [%- END %]