Merge pull request #32788 from s-aga-r/fix/github-issue/30339

fix: use `flt` instead of `cint` in `get_batch_no`
This commit is contained in:
Sagar Sharma 2022-11-02 15:54:41 +05:30 committed by GitHub
commit 25a2c8ab82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,7 +291,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