Skip to content

Commit

Permalink
fix: use flt instead of cint
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Nov 1, 2022
1 parent 1033d34 commit 7fad405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/batch/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7fad405

Please sign in to comment.