Merge lp:~jfb-tempo-consulting/unifield-server/US-9271 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 6316
Proposed branch: lp:~jfb-tempo-consulting/unifield-server/US-9271
Merge into: lp:unifield-server
Diff against target: 57 lines (+5/-14)
1 file modified
bin/addons/register_accounting/report/fully_report_xls.mako (+5/-14)
To merge this branch: bzr merge lp:~jfb-tempo-consulting/unifield-server/US-9271
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+430088@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/register_accounting/report/fully_report_xls.mako'
2--- bin/addons/register_accounting/report/fully_report_xls.mako 2022-05-25 13:59:58 +0000
3+++ bin/addons/register_accounting/report/fully_report_xls.mako 2022-09-19 07:45:52 +0000
4@@ -933,21 +933,14 @@
5 % endfor
6
7 <!-- Display analytic lines linked to this register line -->
8+<!-- since US-6527: each return line has its own JE: US-3612 and BKLG-60 no more needed here -->
9 <%
10 a_lines = False
11-adv_return_aal = line.cash_return_move_line_id and line.cash_return_move_line_id.analytic_lines or []
12-adv_return_fp_lines = []
13-adv_return_free_lines = []
14-for adv_return_l in adv_return_aal:
15- if adv_return_l.free_account:
16- adv_return_free_lines.append(adv_return_l)
17- else:
18- adv_return_fp_lines.append(adv_return_l)
19 if not line.invoice_id and not line.imported_invoice_line_ids and line.fp_analytic_lines:
20- a_lines = adv_return_fp_lines or line.fp_analytic_lines
21+ a_lines = line.fp_analytic_lines
22 %>
23 % if a_lines:
24-% for ana_line in sorted(a_lines, key=lambda x: x.id):
25+% for ana_line in [x for x in sorted(a_lines, key=lambda x: x.id) if not x.free_account]:
26 <%
27 line_color = 'blue'
28 if ana_line.is_reallocated:
29@@ -958,7 +951,6 @@
30 line_color = 'red'
31 endif
32 %>
33-% if not ana_line.free_account:
34 <Row>
35 % if o.journal_id.type == 'cheque':
36 <Cell ss:Index="9" ss:StyleID="${line_color}_ana_left">
37@@ -995,7 +987,6 @@
38 <Data ss:Type="String">${(ana_line.is_reallocated and _('Corrected')) or (ana_line.is_reversal and _('Reversal')) or ''}</Data>
39 </Cell>
40 </Row>
41-% endif
42 % endfor
43 % endif
44
45@@ -1003,10 +994,10 @@
46 <%
47 a_lines = False
48 if not line.invoice_id and not line.imported_invoice_line_ids and line.free_analytic_lines:
49- a_lines = adv_return_free_lines or line.free_analytic_lines
50+ a_lines = line.free_analytic_lines
51 %>
52 % if a_lines:
53-% for ana_line in sorted(a_lines, key=lambda x: x.id):
54+% for ana_line in [ x for x in sorted(a_lines, key=lambda x: x.id) if x.free_account]:
55 <%
56 line_color = 'blue'
57 if ana_line.is_reallocated:

Subscribers

People subscribed via source and target branches