Fixes #1532. Only show an error message for missing Quality Inspection but let the user submit Purchase Receipt.
This commit is contained in:
parent
1872312cc6
commit
fc79efb97c
@ -207,7 +207,7 @@ class PurchaseReceipt(BuyingController):
|
|||||||
(d.item_code,), as_dict = 1)
|
(d.item_code,), as_dict = 1)
|
||||||
ins_reqd = ins_reqd and ins_reqd[0]['inspection_required'] or 'No'
|
ins_reqd = ins_reqd and ins_reqd[0]['inspection_required'] or 'No'
|
||||||
if ins_reqd == 'Yes' and not d.qa_no:
|
if ins_reqd == 'Yes' and not d.qa_no:
|
||||||
frappe.throw(_("Quality Inspection required for Item {0}").format(d.item_code))
|
frappe.msgprint(_("Quality Inspection required for Item {0}").format(d.item_code))
|
||||||
|
|
||||||
# Check for Stopped status
|
# Check for Stopped status
|
||||||
def check_for_stopped_status(self, pc_obj):
|
def check_for_stopped_status(self, pc_obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user