commit | be4593c1d9e4877bb61224cb182d6d57b13ce2ca | [log] [tgz] |
---|---|---|
author | Sagar Sharma <sagarsharma.s312@gmail.com> | Wed Nov 02 11:50:51 2022 +0530 |
committer | GitHub <noreply@github.com> | Wed Nov 02 11:50:51 2022 +0530 |
tree | 4a2635aff3e641af87f99c13778e7a56094079da | |
parent | 31f95da9476255eabd8414a5fd77c58c02e8b35b [diff] | |
parent | a6a280669c680dc8dae6a6c773706237bc64a429 [diff] |
Merge branch 'develop' into fix/github-issue/30339
diff --git a/erpnext/stock/doctype/batch/batch.py b/erpnext/stock/doctype/batch/batch.py index 52854a0..f14288b 100644 --- a/erpnext/stock/doctype/batch/batch.py +++ b/erpnext/stock/doctype/batch/batch.py
@@ -291,7 +291,7 @@ 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