Fixes related to countrywise coa

This commit is contained in:
Nabin Hait
2014-03-25 18:28:49 +05:30
parent ec9fb67d84
commit 2c517e0a62
9 changed files with 15 additions and 30 deletions

View File

@@ -119,7 +119,7 @@ class StatusUpdater(DocListController):
# get all qty where qty > target_field
item = frappe.db.sql("""select item_code, `{target_ref_field}`,
`{target_field}`, parenttype, parent from `{target_dt}`
`{target_field}`, parenttype, parent from `tab{target_dt}`
where `{target_ref_field}` < `{target_field}`
and name=%s and docstatus=1""".format(**args),
args['name'], as_dict=1)