[%- USE T8 %] [% USE HTML %][% USE LxERP %][% USE P %]

[% 'Overdue sales quotations and requests for quotations' | $T8 %]

[% P.hidden_tag('action', 'Order/dispatch') %] [% P.hidden_tag('callback', HTML.escape(callback)) %] [%- FOREACH row = QUOTATIONS %] [%- SET RIGHT_TO_EDIT = ((row.vc == 'customer' && AUTH.assert('sales_quotation_edit', 1)) || (row.vc == 'vendor' && AUTH.assert('request_quotation_edit', 1))) %] [%- END %]
  [% 'Date' | $T8 %] [% 'Valid until' | $T8 %] [% 'Sales quotation' | $T8 %] / [% 'Request quotation' | $T8 %] [% 'Customer' | $T8 %] / [% 'Vendor' | $T8 %] [% 'Transaction description' | $T8 %] [% 'Amount' | $T8 %] [% 'Employee' | $T8 %]
[%- IF RIGHT_TO_EDIT %] [% P.checkbox_tag("ids[]", value=HTML.escape(row.id), checked="0") %] [%- END %] [% HTML.escape(row.transdate) %] [% HTML.escape(row.reqdate) %] [% IF row.vc == 'customer' %] [% 'Sales quotation' | $T8 %] [% ELSE %] [% 'Request quotation' | $T8 %] [% END %] [% HTML.escape(row.quonumber) %] [% IF row.vc == 'customer' %] [% HTML.escape(row.customer) %] [% ELSE %] [% HTML.escape(row.vendor) %] [% END %] [% HTML.escape(row.transaction_description) %] [% HTML.escape(LxERP.format_amount(row.amount, 2)) %] [% HTML.escape(row.employee) %]

[% P.submit_tag('action_close_quotations', LxERP.t8('Close Quotations')) %]