Merge lp:~unifield-team/unifield-wm/us-788 into lp:unifield-wm

Proposed by jftempo
Status: Merged
Merged at revision: 2700
Proposed branch: lp:~unifield-team/unifield-wm/us-788
Merge into: lp:unifield-wm
Diff against target: 56 lines (+15/-11)
1 file modified
vertical_integration/report/hq_report_oca.py (+15/-11)
To merge this branch: bzr merge lp:~unifield-team/unifield-wm/us-788
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+279602@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 'vertical_integration/report/hq_report_oca.py'
2--- vertical_integration/report/hq_report_oca.py 2015-11-18 14:02:40 +0000
3+++ vertical_integration/report/hq_report_oca.py 2015-12-04 14:09:03 +0000
4@@ -241,14 +241,19 @@
5 rate]
6 first_result_lines.append(formatted_data)
7 if is_cur_adj_entry or is_rev_entry:
8- # US-478/3: FXA/REV entry, raw data, always rate of 1
9+ # US-788/1 and US-478/3: FXA/REV raw data override
10 # without impacting formatted_data for other files
11- first_result_lines[-1][-1] = 1.
12+ # US-788/1: always display booking as func
13+ # US-478/3 always rate of 1
14+ first_result_lines[-1][13] = first_result_lines[-1][16] # US-788/1
15+ first_result_lines[-1][14] = first_result_lines[-1][17] # US-788/1
16+ first_result_lines[-1][15] = first_result_lines[-1][18] # US-788/1
17+ first_result_lines[-1][-1] = 1. # US-478/3
18
19 # For third report: add to corresponding sub
20 if journal and journal.type not in (
21 exclude_jn_type_for_balance_and_expense_report): # US-274/2
22- if not account.shrink_entries_for_hq or is_rev_entry:
23+ if not account.shrink_entries_for_hq or is_rev_entry or is_cur_adj_entry:
24 # US-478/1: or is_rev_entry, no shrink for rev journal entries
25 expat_identification = "0"
26 expat_employee = "0"
27@@ -343,7 +348,6 @@
28 and analytic_line.journal_id.type == 'revaluation' or False
29
30 # For first report: as is
31- booking_amounts_indexes = [13, 14]
32 formatted_data = [analytic_line.instance_id and analytic_line.instance_id.code or "",
33 analytic_line.journal_id and analytic_line.journal_id.code or "",
34 analytic_line.entry_sequence or "",
35@@ -366,14 +370,14 @@
36 rate]
37 first_result_lines.append(formatted_data)
38 if is_analytic_cur_adj_entry or is_analytic_rev_entry:
39- # US-478/3: FXA/REV entry, raw data,
40- # - always rate of 1 for functional
41- # - always 0 booking amounts
42+ # US-788/1 and US-478/3: FXA/REV raw data override
43 # without impacting formatted_data for other files
44- first_result_lines[-1][-1] = 1.
45- # FXA/REV entry
46- for i in booking_amounts_indexes:
47- first_result_lines[-1][i] = ZERO_CELL_CONTENT
48+ # US-788/1: always display booking as func
49+ # US-478/3 always rate of 1
50+ first_result_lines[-1][13] = first_result_lines[-1][16] # US-788/1
51+ first_result_lines[-1][14] = first_result_lines[-1][17] # US-788/1
52+ first_result_lines[-1][15] = first_result_lines[-1][18] # US-788/1
53+ first_result_lines[-1][-1] = 1. # US-478/3
54 if analytic_line.journal_id \
55 and analytic_line.journal_id.type not in (
56 exclude_jn_type_for_balance_and_expense_report): # US-274/2

Subscribers

People subscribed via source and target branches