[% 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) %]
<br>
- [% IF ( !id && draft_id ) %]
- <input type="checkbox" name="remove_draft" id="remove_draft" value="1" [% IF ( remove_draft ) %]checked[% END %]>
- <label for="remove_draft">[% 'Remove draft when posting' | $T8 %]</label>
- [% END %]
-
- <br>
-
<input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
[% IF ( show_storno_button ) %]
<input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
<input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
- <input type="button" class="submit" onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
+ <input type="button" class="submit" onclick="set_history_window([% id %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
[% ELSE %]
[% IF ( !is_closed ) %]
<input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
- <input class="submit" type="submit" name="action" value="[% 'Save draft' | $T8 %]">
+ [% L.button_tag('kivi.Draft.popup("ar", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
[% END %]
[% END %]