fix: conversion issue (#18357)
This commit is contained in:
committed by
Nabin Hait
parent
1866cebd14
commit
f650b287ef
@@ -177,7 +177,8 @@ class StockEntry(StockController):
|
|||||||
item.set(f, item_details.get(f))
|
item.set(f, item_details.get(f))
|
||||||
|
|
||||||
if not item.transfer_qty and item.qty:
|
if not item.transfer_qty and item.qty:
|
||||||
item.transfer_qty = item.qty * item.conversion_factor
|
item.transfer_qty = ( flt(item.qty, item.precision("qty"))
|
||||||
|
* flt(item.conversion_factor, item.precision("conversion_factor")) )
|
||||||
|
|
||||||
if (self.purpose in ("Material Transfer", "Material Transfer for Manufacture")
|
if (self.purpose in ("Material Transfer", "Material Transfer for Manufacture")
|
||||||
and not item.serial_no
|
and not item.serial_no
|
||||||
|
|||||||
Reference in New Issue
Block a user