[% USE LxERP %] [% USE T8 %] [% USE L %][%- USE P -%] [% IF ( follow_up_length && follow_up_due_length ) %] [% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_up_length , follow_up_due_length) %] [% END %] [% P.hidden_tag('draft_id', draft_id) %] [% P.hidden_tag('draft_description', draft_description) %]
[% IF ( show_storno_button ) %] [% END %] [% IF ( id ) %] [% IF ( radier ) %] [% END %] [% IF ( !is_closed ) %] [% END %] [% ELSE %] [% IF ( !is_closed ) %] [% L.button_tag('kivi.Draft.popup("ar", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %] [% END %] [% END %] [% IF ( show_mark_as_paid_button ) %] [% L.submit_tag("action", LxERP.t8('Mark as paid'), confirm=LxERP.t8('This will remove the invoice from showing as unpaid even if the unpaid amount does not match the amount. Proceed?')) %] [% END %] [% L.button_tag("kivi.RecordTemplate.popup('ar_transaction')", LxERP.t8("Record templates")) %]