Merge lp:~julie-w/unifield-server/US-4225 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4775
Proposed branch: lp:~julie-w/unifield-server/US-4225
Merge into: lp:unifield-server
Diff against target: 22 lines (+6/-6)
1 file modified
bin/addons/vertical_integration/report/hq_report_ocb.py (+6/-6)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-4225
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+340473@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/vertical_integration/report/hq_report_ocb.py'
2--- bin/addons/vertical_integration/report/hq_report_ocb.py 2018-02-26 09:52:57 +0000
3+++ bin/addons/vertical_integration/report/hq_report_ocb.py 2018-03-02 15:56:41 +0000
4@@ -173,12 +173,12 @@
5 cr.execute(sqlmark, (seq, tuple(ids),))
6 # Do right request
7 sqltwo = """SELECT req.concat AS "DB ID", i.code, j.code, j.code || '-' || p.code || '-' || f.code || '-' || a.code || '-' || c.name AS "entry_sequence", 'Automated counterpart - ' || j.code || '-' || a.code || '-' || p.code || '-' || f.code AS "desc", '' AS "ref", p.date_stop AS "document_date", p.date_stop AS "date", a.code AS "account", '' AS "partner_txt", '' AS "dest", '' AS "cost_center", '' AS "funding_pool",
8-CASE WHEN req.total > 0 THEN req.total ELSE 0.0 END AS "debit",
9-CASE WHEN req.total < 0 THEN ABS(req.total) ELSE 0.0 END as "credit",
10-c.name AS "booking_currency",
11-CASE WHEN req.func_total > 0 THEN req.func_total ELSE 0.0 END AS "func_debit",
12-CASE WHEN req.func_total < 0 THEN ABS(req.func_total) ELSE 0.0 END AS "func_credit",
13-j.type AS "journal_type"
14+ CASE WHEN req.total > 0 THEN ROUND(req.total, 2) ELSE 0.0 END AS "debit",
15+ CASE WHEN req.total < 0 THEN ABS(ROUND(req.total, 2)) ELSE 0.0 END as "credit",
16+ c.name AS "booking_currency",
17+ CASE WHEN req.func_total > 0 THEN ROUND(req.func_total, 2) ELSE 0.0 END AS "func_debit",
18+ CASE WHEN req.func_total < 0 THEN ABS(ROUND(req.func_total, 2)) ELSE 0.0 END AS "func_credit",
19+ j.type AS "journal_type"
20 FROM (
21 SELECT aml.instance_id, aml.period_id, aml.journal_id, aml.currency_id, aml.account_id,
22 SUM(amount_currency) AS total,

Subscribers

People subscribed via source and target branches