mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
rejected qty issue fixed
This commit is contained in:
@@ -97,7 +97,7 @@ class DocType:
|
|||||||
msgprint("Serial no is mandatory for item: "+ d.item_code, raise_exception = 1)
|
msgprint("Serial no is mandatory for item: "+ d.item_code, raise_exception = 1)
|
||||||
|
|
||||||
# validate rejected serial nos
|
# validate rejected serial nos
|
||||||
if fname == 'purchase_receipt_details' and d.rejected_qty and ar_required == 'Yes' and not d.rejected_serial_no:
|
if fname == 'purchase_receipt_details' and flt(d.rejected_qty) > 0 and ar_required == 'Yes' and not d.rejected_serial_no:
|
||||||
msgprint("Rejected serial no is mandatory for rejected qty of item: "+ d.item_code, raise_exception = 1)
|
msgprint("Rejected serial no is mandatory for rejected qty of item: "+ d.item_code, raise_exception = 1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user