[%- USE L %] [%- USE HTML %] [%- USE T8 %] [%- USE LxERP %][%- USE P -%]
[% 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) %]

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

[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %] [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus", style=style) %] [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
[% 'Invoice Number' | $T8 %]
[% 'Address' | $T8 %]
[% street | html %][% L.hidden_tag('street', street) %]
[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]
[% city | html %][% L.hidden_tag('city', city) %]
[% country | html %][% L.hidden_tag('country', country) %]
[% 'Memo' | $T8 %]
[% IF currency != defaultcurrency %] [% IF forex %] [%- ELSE %] [%- END %] [% END %]
[% '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), size=10) %]
[% '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 %]