[script report] purchase register in new style

This commit is contained in:
Nabin Hait
2013-04-30 17:22:43 +05:30
parent fe9c1eb5df
commit 98cfe688a8
8 changed files with 240 additions and 20 deletions

View File

@@ -94,8 +94,8 @@ def get_conditions(filters):
def get_invoices(filters):
conditions = get_conditions(filters)
return webnotes.conn.sql("""select name, posting_date, territory, debit_to, territory,
project_name, customer, remarks, net_total, other_charges_total, grand_total
return webnotes.conn.sql("""select name, posting_date, debit_to, project_name, customer,
remarks, net_total, other_charges_total, grand_total
from `tabSales Invoice` where docstatus = 1 %s
order by posting_date desc, name desc""" % conditions, filters, as_dict=1)