6 [%- IF (num_follow_ups && num_due) %]
 
   7   <p>[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due) %]</p>
 
  10 <input name=callback type=hidden value="[% callback | html %]">
 
  11 <input name=gldate type=hidden value="[% gldate | html %]">
 
  12 <input type=hidden name=draft_id value="[% draft_id %]">
 
  13 <input type=hidden name=draft_description value="[% draft_description | html %]">
 
  17 <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
 
  21     <input class=submit type=submit name=action value="[% 'Post' | $T8 %]">
 
  22     <input class=submit type=submit name=action value="[% 'Delete' | $T8 %]">
 
  26     <input class=submit type=submit name=action value="[% 'Storno' | $T8 %]">
 
  29   <input class=submit type=submit name=action value="[% 'Post Payment' | $T8 %]">
 
  30   <input class=submit type=submit name=action value="[% 'Use As New' | $T8 %]">
 
  31   <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
 
  33 [%- ELSIF show_post_draft %]
 
  34     <input class=submit type=submit name=action value="[% 'Post' | $T8 %]">
 
  35     [% L.button_tag('kivi.Draft.popup("ap", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
 
  39   <input type=button class=submit onclick="set_history_window([% id %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
 
  40   [% IF INSTANCE_CONF.get_ap_show_mark_as_paid %]
 
  41     [% 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?')) %]
 
  47 <script type="text/javascript">
 
  49 $(document).ready(function() {
 
  51   [%- WHILE row < rowcount %]
 
  52    [%- SET row=row + 1 %]
 
  53    $('#AP_amount_chart_id_[% row %]').on('set_item:ChartPicker', function(e, item) {
 
  54      kivi.GL.update_taxes(this);