Merge branch 'master' of github.com:webnotes/erpnext into website-wip

This commit is contained in:
Anand Doshi
2013-09-17 11:00:24 +05:30
55 changed files with 706 additions and 190 deletions

View File

@@ -83,12 +83,13 @@ class DocType:
self.validate_mandatory()
self.validate_uom_integer_type()
self.update_item_master()
self.update_stock_ledger_entry()
self.update_bin()
self.update_item_master()
def validate_uom_integer_type(self):
current_is_integer = webnotes.conn.get_value("UOM", self.doc.current_stock_uom, "must_be_whole_number")
new_is_integer = webnotes.conn.get_value("UOM", self.doc.new_stock_uom, "must_be_whole_number")