[fix] [minor] fixed order of execution

This commit is contained in:
Nabin Hait 2013-09-17 10:38:04 +05:30
parent 80c76fa80d
commit 42573bcc90

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")