fix: TypeError while setting transfer_qty in Stock Entry (#22929)

Co-authored-by: Marica <maricadsouza221197@gmail.com>
This commit is contained in:
Rucha Mahabal 2020-08-12 14:33:30 +05:30 committed by GitHub
parent 93df724dc1
commit e0cc421e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,8 @@ class StockEntry(StockController):
item.set(f, item_details.get(f))
if not item.transfer_qty and item.qty:
item.transfer_qty = item.qty * item.conversion_factor
item.transfer_qty = flt(flt(item.qty) * flt(item.conversion_factor),
self.precision("transfer_qty", item))
if (self.purpose in ("Material Transfer", "Material Transfer for Manufacture")
and not item.serial_no