Skip to content

Commit

Permalink
[ADD] l10n_nl_xaf_auditfile_export: more rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Mar 25, 2024
1 parent b8bb3ec commit 9393880
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions l10n_nl_xaf_auditfile_export/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,19 @@
<opBalDate><t t-esc="self.date_start" /></opBalDate>
<opBalDesc>Opening balance</opBalDesc>
<linesCount><t t-esc="ob_totals['count']" /></linesCount>
<totalDebit><t t-esc="ob_totals['debit']" /></totalDebit>
<totalCredit><t t-esc="ob_totals['credit']" /></totalCredit>
<totalDebit><t t-esc="round(ob_totals['debit'], 2)" /></totalDebit>
<totalCredit><t t-esc="round(ob_totals['credit'], 2)" /></totalCredit>
<obLine t-foreach="self.get_ob_lines()" t-as="l">
<nr><t t-esc="l['account_id']" /></nr>
<accID><t t-esc="l['account_code']" /></accID>
<amnt><t t-esc="abs(l['balance'])" /></amnt>
<amnt><t t-esc="round(abs(l['balance']), 2)" /></amnt>
<amntTp><t t-esc="'C' if l['balance'] &lt; 0 else 'D'" /></amntTp>
</obLine>
</openingBalance>
<transactions>
<linesCount><t t-esc="self.get_move_line_count()" /></linesCount>
<totalDebit><t t-esc="self.get_move_line_total_debit()" /></totalDebit>
<totalCredit><t t-esc="self.get_move_line_total_credit()" /></totalCredit>
<totalDebit><t t-esc="round(self.get_move_line_total_debit(), 2)" /></totalDebit>
<totalCredit><t t-esc="round(self.get_move_line_total_credit(), 2)" /></totalCredit>
<journal t-foreach="self.get_journals()" t-as="j">
<jrnID><t t-esc="j.code" /></jrnID>
<desc><t t-esc="j.name" /></desc>
Expand Down

0 comments on commit 9393880

Please sign in to comment.