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

[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]

[% SET vc_id = vc _ '_id' style = "width: 250px" %] [% L.hidden_tag('defaultcurrency', defaultcurrency) %] [% L.hidden_tag('closedto', closedto) %] [% L.hidden_tag('vc', vc) %] [% L.hidden_tag('type', type) %] [% L.hidden_tag('formname', type) %] [% L.hidden_tag('queued', queued) %] [% L.hidden_tag('arap', arap) %] [% L.hidden_tag('ARAP', ARAP) %] [% L.hidden_tag('openinvoices', openinvoices) %]
[% IF currency != defaultcurrency %] [% IF forex %] [% ELSE %] [% END %] [% END %]
[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %] [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus wi-wide") %] [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
[% 'Address' | $T8 %] [% IF street || zipcode || city || country %] [% IF street %][% street | html %][% END %] [% L.hidden_tag('street', street) %] [% IF zipcode || city %][% zipcode | html %] [% city | html %][% END %] [% L.hidden_tag('zipcode', zipcode) %][% L.hidden_tag('city', city) %] [% IF country %][% country | html %][% END %] [% L.hidden_tag('country', country) %] [% ELSE %]   [% END %]
[% 'Memo' | $T8 %]
[% 'Invoice Number' | $T8 %]
[% 'Account' | $T8 %]
[% 'Date' | $T8 %] [% L.date_tag('datepaid', datepaid) %]
[% 'Currency' | $T8 %]
[% 'Exchangerate' | $T8 %][% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), class='wi-small') %]
[% 'Source' | $T8 %]
[% 'Amount' | $T8 %] [% LxERP.format_amount(amount, 2) %]
[% IF openinvoices_other_currencies %]

[% 'Note' | $T8 %]:
[% IF is_customer %] [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %] [% ELSE %] [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.', openinvoices_other_currencies) %] [% END %]

[% END %]