Merge pull request #33032 from deepeshgarg007/dimension_report_filtering
fix: Accounting Dimension filtering for Sales and Purchase Report
This commit is contained in:
commit
f96c66bbc0
@ -232,12 +232,12 @@ def get_conditions(filters):
|
|||||||
|
|
||||||
conditions += (
|
conditions += (
|
||||||
common_condition
|
common_condition
|
||||||
+ "and ifnull(`tabPurchase Invoice Item`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
+ "and ifnull(`tabPurchase Invoice`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
conditions += (
|
conditions += (
|
||||||
common_condition
|
common_condition
|
||||||
+ "and ifnull(`tabPurchase Invoice Item`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
+ "and ifnull(`tabPurchase Invoice`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
||||||
)
|
)
|
||||||
|
|
||||||
return conditions
|
return conditions
|
||||||
|
@ -390,12 +390,12 @@ def get_conditions(filters):
|
|||||||
|
|
||||||
conditions += (
|
conditions += (
|
||||||
common_condition
|
common_condition
|
||||||
+ "and ifnull(`tabSales Invoice Item`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
+ "and ifnull(`tabSales Invoice`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
conditions += (
|
conditions += (
|
||||||
common_condition
|
common_condition
|
||||||
+ "and ifnull(`tabSales Invoice Item`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
+ "and ifnull(`tabSales Invoice`.{0}, '') in %({0})s)".format(dimension.fieldname)
|
||||||
)
|
)
|
||||||
|
|
||||||
return conditions
|
return conditions
|
||||||
|
Loading…
Reference in New Issue
Block a user