Issue in the purchase receipt when create "Quality inspection"

I have created a purchase receipt with 3 items and for only one item I have enabled the check box of" quality inspection required before purchase" in the Item master doctype.

and when I initiate the quality inspection process, the software creates inspections for all 3 items in the table, why is that so?

5 Likes

Yes I am also facing the same issue

5 Likes

me too

6 Likes

Is there any solution for this issue as iā€™m still facing the issue

You can write custom code to override the behavior of dialogue box where you need to write similar code like ERPNext to pop up the dialogue box and populate it with those item codes for which inspection is enabled. Basically you have to write the entire code for dialogue box which is in Source Code with changes for item code filtration.

Thank you will try this approach and update accordingly

You can update to latest version of ERPNext where they do populate all items in dialogue box but while creating Quality Inspection it throws error to remove the item for which Quality Inspection is not enabled. If you want to check the code which controls this behavior it is available in erpnext/erpnext/public/js/controllers/transaction.js and python file is in erpnext/erpnext/controllers/stock_controller.py