Trend analyzer issue fixed
This commit is contained in:
parent
978a1e0e46
commit
8cf9934b93
@ -80,14 +80,8 @@ report.get_query = function() {
|
||||
add_col = '';
|
||||
add_tables = '';
|
||||
sp_cond = '';
|
||||
if(trans == 'Sales Invoice') trans = 'Sales Invoice';
|
||||
else if(trans == 'Purchase Invoice') trans = 'Purchase Invoice';
|
||||
|
||||
trans_det = trans+' Detail'
|
||||
|
||||
if(trans == 'Sales Invoice') trans_det = 'Sales Invoice Item';
|
||||
else if(trans == 'Purchase Invoice') trans_det = 'Purchase Invoice Item';
|
||||
else if(trans == 'Purchase Order') trans_det = 'Purchase Order Item';
|
||||
trans_det = trans+' Item'
|
||||
|
||||
if(order_type != '') add_code += ' AND t1.order_type = '+order_type;
|
||||
|
||||
|
@ -39,14 +39,8 @@ project = filter_values.get('project')
|
||||
# ********************************************* SET DEFAULTS **************************************************
|
||||
# Details Table
|
||||
# --------------
|
||||
if trans == 'Sales Invoice': trans = 'Sales Invoice'
|
||||
elif trans == 'Purchase Invoice': trans = 'Purchase Invoice'
|
||||
|
||||
trans_det = trans+' Detail'
|
||||
|
||||
if trans == 'Sales Invoice': trans_det = 'Sales Invoice Item'
|
||||
elif trans == 'Purchase Invoice': trans_det = 'Purchase Invoice Item'
|
||||
elif trans == 'Purchase Order': trans_det = 'Purchase Order Item'
|
||||
trans_det = trans+' Item'
|
||||
|
||||
col_names, query_val = get_obj('Trend Analyzer Control').get_single_year_query_value(fiscal_year, period, trans, trans_det)
|
||||
query_val += 'SUM(t2.qty), SUM(t2.amount)'
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:53',
|
||||
'creation': '2012-04-23 12:46:00',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:53',
|
||||
'modified': '2012-05-04 12:49:43',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'saumil@webnotestech.com'
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user