Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / gl / form_footer.html
index ede815b..b5769bd 100644 (file)
@@ -2,49 +2,43 @@
 [%- USE LxERP %]
 [%- USE T8 %]
 [%- USE L %]
-    <tr class=listtotal>
-    <th colspan="3" align=right class=listtotal> [% LxERP.format_amount(totaldebit, 2) | html %]</th>
-    <th align=right class=listtotal> [% LxERP.format_amount(totalcredit, 2) | html %]</th>
-    <td colspan=6></td>
+      <tr class=listtotal>
+      <th colspan="3" align=right class=listtotal> [% LxERP.format_amount(totaldebit, 2) | html %]</th>
+      <th align=right class=listtotal> [% LxERP.format_amount(totalcredit, 2) | html %]</th>
+      <td colspan=6></td>
+      </tr>
+    </table>
+    </td>
     </tr>
   </table>
   </td>
   </tr>
 </table>
+</div>
+[% PROCESS 'webdav/_list.html' %]
+</div>
 
+<hr size="3" noshade>
 <input name=callback type=hidden value="[% callback %]">
+<input name=bt_id    type=hidden value="[% bt_id %]">
+<input name=bt_chart_id type=hidden value="[% bt_chart_id %]">
 
 [%- IF id && follow_ups.size %]
   <p>[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size , follow_ups_due) %]</p>
 [%- END %]
-
-<br>
-
-[%- IF id %]
-  [% L.submit_tag('action', LxERP.t8('Update'), id='update_button') %]
-
-  [% IF !locked && radieren %]
-    [% L.submit_tag('action', LxERP.t8('Post'), accesskey='b') %]
-    [% L.submit_tag('action', LxERP.t8('Delete')) %]
+</form>
+
+<script type="text/javascript">
+ <!--
+$(document).ready(function() {
+  [%- SET row=0 %]
+  [%- WHILE row < rowcount %]
+   [%- SET row=row + 1 %]
+   $('#accno_id_[% row %]').on('set_item:ChartPicker', function(e, item) {
+     kivi.GL.show_chart_balance(this);
+     kivi.GL.update_taxes(this);
+   });
   [%- END %]
-
-  [%- IF !storno %]
-    [% L.submit_tag('action', LxERP.t8('Storno')) %]
-  [%- END %]
-
-  [% L.submit_tag('action', LxERP.t8('Follow-Up'), onclick='follow_up_window()') %]
-[%- ELSE %]
-
- [%- IF draft_id %]
-      <p>[% L.checkbox_tag('remove_draft', checked=remove_draft, label=LxERP.t8('Remove Draft')) %]</p>
- [%- END %]
-
-      [% L.submit_tag('action', LxERP.t8('Update'), id='update_button') %]
-      [% L.submit_tag('action', LxERP.t8('Post')) %]
-      [% L.submit_tag('action', LxERP.t8('Save Draft')) %]
-      [% L.hidden_tag('draft_id', draft_id) %]
-      [% L.hidden_tag('draft_description', draft_description) %]
-[%- END %]
-
-  </form>
-
+});
+-->
+</script>