[Reports][Validation changes in Purchase and Sales trends]

This commit is contained in:
Saurabh
2013-06-14 17:40:48 +05:30
parent 606d8383ff
commit feb8669cbd
8 changed files with 16 additions and 15 deletions

View File

@@ -107,6 +107,7 @@ def get_invoices(filters):
from `tabPurchase Invoice` where docstatus = 1 %s
order by posting_date desc, name desc""" % conditions, filters, as_dict=1)
def get_invoice_expense_map(invoice_list):
expense_details = webnotes.conn.sql("""select parent, expense_head, sum(amount) as amount
from `tabPurchase Invoice Item` where parent in (%s) group by parent, expense_head""" %