fix: consider full integer batch nos

This commit is contained in:
Ankush Menat 2022-03-22 16:32:23 +05:30 committed by Ankush Menat
parent a18c687844
commit 41db43cdc5

View File

@ -597,8 +597,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