[IMP] Activity Statements aggregate Payment Data

Before this change, if a payment was reconciled using the bank statement widget
the move was seperated into many multiples of lines making activity
statements twice as long as necessary.

Now payments are a single line
This commit is contained in:
Graeme Gellatly
2019-05-09 01:53:03 +12:00
committed by Miquel Raïch
parent 844745b58a
commit 733e1ebca4
2 changed files with 28 additions and 7 deletions

View File

@@ -29,7 +29,7 @@
<t t-set="display_currency" t-value="Currencies[currency[0]]" />
<t t-set="currency" t-value="currency[1]" />
<p>
<span t-esc="'' if account_type == 'receivable' else 'Supplier '"/>Statement between <span t-esc="d['start']" /> and <span t-esc="d['end']" /> in <span t-esc="display_currency.name"/>
<span t-if="account_type == 'payable'">Supplier </span>Statement between <span t-esc="d['start']" /> and <span t-esc="d['end']" /> in <span t-esc="display_currency.name"/>
</p>
<table class="table table-condensed table-statement">
<thead>
@@ -79,7 +79,8 @@
</t>
</t>
<t t-if="line['name'] == '/'">
<span t-esc="line['ref']"/>
<span t-if="line['ref'] == 'Payment'">Payment</span>
<span t-else="" t-esc="line['ref']"/>
</t>
</td>
<td class="amount">