[%- USE T8 %] [%- USE HTML %] [%- USE L %] [%- USE LxERP %][%- USE P -%] [%- IF (num_follow_ups && num_due) %]

[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due) %]

[%- END %] [% P.hidden_tag('draft_id', draft_id) %] [% P.hidden_tag('draft_description', draft_description) %]
[%- IF id %] [%- IF radier %] [%- END %] [%- IF show_storno %] [%- END %] [%- ELSIF show_post_draft %] [% L.button_tag('kivi.Draft.popup("ap", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %] [%- END %] [%- IF id %] [% IF INSTANCE_CONF.get_ap_show_mark_as_paid %] [% 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 %] [%- END %] [% L.button_tag("kivi.RecordTemplate.popup('ap_transaction')", LxERP.t8("Record templates")) %]