[fixes] small issue fixed in sales taxes and charges

This commit is contained in:
Nabin Hait 2013-04-01 15:40:50 +05:30
parent 1013e77957
commit eaeb50effa

View File

@ -24,7 +24,7 @@ class DocType:
def get_rate(self, arg):
from webnotes.model.code import get_obj
return get_obj('Sales Common').get_rate(arg, self)
return get_obj('Sales Common').get_rate(arg)
def update_other_default_charges(self):
webnotes.conn.sql("update `tabSales Taxes and Charges Master` set is_default = 0 where ifnull(is_default,0) = 1 and name != '%s' and company = '%s'" % (self.doc.name, self.doc.company))