packing slip fixes #1711

This commit is contained in:
Nabin Hait 2014-05-29 18:26:01 +05:30
parent 3dc6a80198
commit f3552ca737

View File

@ -141,7 +141,7 @@ class PackingSlip(Document):
note
"""
recommended_case_no = frappe.db.sql("""SELECT MAX(to_case_no) FROM `tabPacking Slip`
WHERE delivery_note = %(delivery_note)s AND docstatus=1""", self.as_dict())
WHERE delivery_note = %s AND docstatus=1""", self.delivery_note)
return cint(recommended_case_no[0][0]) + 1