-
-<br>
-
-[%- IF id %]
-
- [%- IF !storno %]
- [% L.submit_tag('action', LxERP.t8('Storno')) %]
- [%- END %]
-
- [% IF !locked && radieren %]
- [% L.submit_tag('action', LxERP.t8('Post'), accesskey='b') %]
- [% L.submit_tag('action', LxERP.t8('Delete')) %]
- [%- END %]
- [% L.submit_tag('action', LxERP.t8('Update'), id='update_button') %]
- [% 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>
-
-</body>
+</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 %]
+});
+-->
+</script>