X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b735f45033d8daef70ee2c82365a86cc06281f4c..c8c6d6d:/templates/webpages/ct/get_delivery_master.html diff --git a/templates/webpages/ct/get_delivery_master.html b/templates/webpages/ct/get_delivery_master.html index 0ca76e103..156bd11e8 100644 --- a/templates/webpages/ct/get_delivery_master.html +++ b/templates/webpages/ct/get_delivery_master.html @@ -11,13 +11,21 @@ Description Qty Unit +[%- IF is_customer %] Sell Price +[%- ELSE %] + Last Cost +[%- END %] [%- FOREACH row = DELIVERY %] +[%- + row.script = is_customer ? ( row.invoice ? 'is' : 'ar' ) + : ( row.invoice ? 'ir' : 'ap' ) +-%] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] - [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] + [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] + [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] [% HTML.escape(row.transdate) || ' ' %] [% HTML.escape(row.description) || ' ' %] [% HTML.escape(row.qty) || ' ' %]