commit | 31f95da9476255eabd8414a5fd77c58c02e8b35b | [log] [tgz] |
---|---|---|
author | Sagar Sharma <sagarsharma.s312@gmail.com> | Tue Nov 01 20:30:55 2022 +0530 |
committer | GitHub <noreply@github.com> | Tue Nov 01 20:30:55 2022 +0530 |
tree | b9cd6d5806869c80b10521a51a5ddba408710b95 | |
parent | 9fb3fb4c836aef1d05e9a8160baf7089cd3bb224 [diff] | |
parent | 1d83fb20d6678a2495c128380969b673ebc41b1a [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