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