fix: Serial No is mandatory
even if the qty
is 0
This commit is contained in:
parent
a9f0a11ce6
commit
cb0b6de4b9
@ -131,7 +131,7 @@ def validate_returned_items(doc):
|
|||||||
)
|
)
|
||||||
|
|
||||||
elif ref.serial_no:
|
elif ref.serial_no:
|
||||||
if not d.serial_no:
|
if d.qty and not d.serial_no:
|
||||||
frappe.throw(_("Row # {0}: Serial No is mandatory").format(d.idx))
|
frappe.throw(_("Row # {0}: Serial No is mandatory").format(d.idx))
|
||||||
else:
|
else:
|
||||||
serial_nos = get_serial_nos(d.serial_no)
|
serial_nos = get_serial_nos(d.serial_no)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user