mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: consider full integer batch nos
This commit is contained in:
committed by
Ankush Menat
parent
a18c687844
commit
41db43cdc5
@@ -597,8 +597,8 @@ def auto_fetch_serial_number(
|
|||||||
batch_nos = safe_json_loads(batch_nos)
|
batch_nos = safe_json_loads(batch_nos)
|
||||||
if isinstance(batch_nos, list):
|
if isinstance(batch_nos, list):
|
||||||
filters.batch_no = batch_nos
|
filters.batch_no = batch_nos
|
||||||
elif isinstance(batch_nos, str):
|
else:
|
||||||
filters.batch_no = [batch_nos]
|
filters.batch_no = [str(batch_nos)]
|
||||||
|
|
||||||
if posting_date:
|
if posting_date:
|
||||||
filters.expiry_date = posting_date
|
filters.expiry_date = posting_date
|
||||||
|
|||||||
Reference in New Issue
Block a user