Bugfix on Account_analytic_analysis for month summary
bzr revid: jvo@tinyerp.com-20081006104744-mqgj7yn6moftjfen
This commit is contained in:
parent
bf0d142c97
commit
c7b653bd1d
|
@ -1,5 +1,5 @@
|
||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
|
# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
|
||||||
|
@ -643,7 +643,7 @@ class account_analytic_account_summary_month(osv.osv):
|
||||||
'(TO_NUMBER(TO_CHAR(d.month, \'YYYYMM\'), \'999999\') + (d.account_id * 1000000))::integer AS id, ' \
|
'(TO_NUMBER(TO_CHAR(d.month, \'YYYYMM\'), \'999999\') + (d.account_id * 1000000))::integer AS id, ' \
|
||||||
'd.account_id AS account_id, ' \
|
'd.account_id AS account_id, ' \
|
||||||
'TO_CHAR(d.month, \'Mon YYYY\') AS month, ' \
|
'TO_CHAR(d.month, \'Mon YYYY\') AS month, ' \
|
||||||
'TO_CHAR(d.month, \'YYYYMM\') AS month_id, ' \
|
'TO_NUMBER(TO_CHAR(d.month, \'YYYYMM\'), \'999999\') AS month_id, ' \
|
||||||
'COALESCE(SUM(l.unit_amount), 0.0) AS unit_amount ' \
|
'COALESCE(SUM(l.unit_amount), 0.0) AS unit_amount ' \
|
||||||
'FROM ' \
|
'FROM ' \
|
||||||
'(SELECT ' \
|
'(SELECT ' \
|
||||||
|
|
Loading…
Reference in New Issue