mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
[fixes] small issue fixed in sales taxes and charges
This commit is contained in:
@@ -24,7 +24,7 @@ class DocType:
|
|||||||
|
|
||||||
def get_rate(self, arg):
|
def get_rate(self, arg):
|
||||||
from webnotes.model.code import get_obj
|
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):
|
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))
|
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user