brotherton-erpnext/selling/search_criteria/variance_report/variance_report.sql
2012-09-24 19:13:42 +05:30

1 line
161 B
SQL

SELECT DISTINCT t1.`name` FROM `tab%(based_on)s` t1, `tabTarget Detail` t2 WHERE t2.parent = t1.name and (t2.target_amount != 0 or t2.target_amount is not null)