- [% IF id %]
-
-
-[% IF show_storno %]
- [% L.submit_tag("action", LxERP.t8("Storno"), confirm=LxERP.t8('Do you really want to cancel this invoice?')) %]
-[% END %]
-
-
-
-[% IF show_delete %]
-
-
-[% END %]
-
-
-
- [% ELSE # no id %]
-
- [% UNLESS locked %]
-
- [%- END %]
- [% L.button_tag('kivi.Draft.popup("ir", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
- [% END # id %]
-
- [% IF id %]
- [%#- button for saving history %]
-
-
- [% IF INSTANCE_CONF.get_ir_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 %]
-
[% P.hidden_tag('draft_id', draft_id) %]