fix: use flt instead of cint in get_batch_no

(cherry picked from commit 9fb3fb4c83)
This commit is contained in:
Sagar Sharma
2022-11-01 10:38:33 +05:30
committed by Mergify
parent a91483899b
commit 601b1e3821

View File

@@ -285,7 +285,7 @@ def get_batch_no(item_code, warehouse, qty=1, throw=False, serial_no=None):
batches = get_batches(item_code, warehouse, qty, throw, serial_no)
for batch in batches:
if cint(qty) <= cint(batch.qty):
if flt(qty) <= flt(batch.qty):
batch_no = batch.batch_id
break