[%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE T8 %] Transaction
[%- LxERP.t8("ID") %]: [%- LxERP.t8("Amount") %]: [%- LxERP.t8("Date") %]: [%- LxERP.t8("Remote name") %]: [%- LxERP.t8("Purpose") %]: [%- LxERP.t8("Remote bank code") %]: [%- LxERP.t8("Remote account number") %]:
[% SELF.transaction.id %] [% LxERP.format_amount(SELF.transaction.amount, 2) %] [% SELF.transaction.valutadate_as_date %] [% SELF.transaction.remote_name %] [% SELF.transaction.purpose %] [% SELF.transaction.remote_bank_code %] [% SELF.transaction.remote_account_number %]

[% 'Vendor filter for AP transaction drafts' | $T8 %]:
[% L.hidden_tag('bt_id', SELF.transaction.id) %]
[%- LxERP.t8("Vendor") %] [%- INCLUDE 'generic/multibox.html' name = 'vendor', select_name = 'vendor_id', default = ALL_VENDORS.size < limit ? vendor_id : vendor_name, style = 'width: 250px', DATA = ALL_VENDORS, id_key = 'id', label_key = 'name', limit = limit, show_empty = 1, allow_textbox = 1, class = 'initial_focus', onChange = 'filter_drafts();', -%]

[% LxERP.t8("Cancel") %]


[% IF DRAFTS.size %] [% 'Draft suggestions' | $T8 %]: [% FOREACH draft = DRAFTS %] [% END %]
[% 'Description' | $T8 %] [% 'Vendor' | $T8 %] [% 'Employee' | $T8 %] [% 'Draft from:' | $T8 %]
[% HTML.escape(draft.description) %] [% HTML.escape(draft.vendor) %] [% HTML.escape(draft.employee.name) %] [% HTML.escape(draft.itime_as_date) %]
[% ELSE %]

[% 'No draft was found.' | $T8 %]

[% END %]