[fix] UOM Conversion factor mandatory in stock entry
This commit is contained in:
parent
f37884472d
commit
d7ed197131
@ -80,7 +80,8 @@ class StockEntry(StockController):
|
||||
for item in self.get("items"):
|
||||
if not flt(item.qty):
|
||||
frappe.throw(_("Row {0}: Qty is mandatory").format(item.idx))
|
||||
|
||||
if not flt(item.conversion_factor):
|
||||
frappe.throw(_("Row {0}: UOM Conversion Factor is mandatory").format(item.idx))
|
||||
item.transfer_qty = flt(item.qty * item.conversion_factor, self.precision("transfer_qty", item))
|
||||
|
||||
def validate_item(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user