~unifield-team/unifield-wm/prod

« back to all changes in this revision

Viewing changes to vertical_integration/report/hq_report_ocg.py

  • Committer: jf
  • Date: 2015-03-12 09:35:17 UTC
  • mfrom: (2406.1.1 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20150312093517-tz1958qxwhvp8nrm
US-137 [FIX] OCG Vertical integration Shrink entries of OD
lp:~unifield-team/unifield-wm/us-137

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
            first_result_lines.append(formatted_data)
181
181
            
182
182
            # For second report: add to corresponding sub
183
 
            if journal.type in ['correction', 'intermission'] or not account.shrink_entries_for_hq:
 
183
            if not account.shrink_entries_for_hq:
184
184
                if (journal.code, journal.id, currency.id) not in main_lines:
185
185
                    main_lines[(journal.code, journal.id, currency.id)] = []
186
186
                main_lines[(journal.code, journal.id, currency.id)].append(formatted_data[:9] + [formatted_data[10]] + [department_info] + formatted_data[11:12] + formatted_data[13:17])