mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
fix: consider full integer batch nos
(cherry picked from commit 41db43cdc5)
This commit is contained in:
committed by
Ankush Menat
parent
4e3bb12b3a
commit
1b469bc341
@@ -614,8 +614,8 @@ def auto_fetch_serial_number(
|
||||
batch_nos = safe_json_loads(batch_nos)
|
||||
if isinstance(batch_nos, list):
|
||||
filters.batch_no = batch_nos
|
||||
elif isinstance(batch_nos, str):
|
||||
filters.batch_no = [batch_nos]
|
||||
else:
|
||||
filters.batch_no = [str(batch_nos)]
|
||||
|
||||
if posting_date:
|
||||
filters.expiry_date = posting_date
|
||||
|
||||
Reference in New Issue
Block a user