[%- 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 %]">
[%- IF id && follow_ups.size %]
<br>
[%- IF id %]
+ [% L.submit_tag('action', LxERP.t8('Update'), id='update_button') %]
- [%- 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 %]
- [% 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()') %]
+ [%- 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.button_tag('kivi.Draft.popup("gl", "unknown", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
[% L.hidden_tag('draft_id', draft_id) %]
[% L.hidden_tag('draft_description', draft_description) %]
[%- END %]
</form>
-</body>
-</html>
+<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>