Hi
When completing a work order of an item that has a serial no linked to it and a
quality inspection linked to the items BOM, the serial no is created. However, its a
bit of a catch -22 because the serial no will not be generated unless the stock entry
is complete and the stock entry will not submit unless the quality inspection is complete. So how does one get the serial no on the quality inspection ?
Update
I can ofcourse add the “serial_no” to the quality inspection AFTER the serial no was generated … with a “frappe.db.set_value” in a python function. This would however,
set values directly in the database. Is this acceptable ?
I am facing a very similar issue with a Purchase Receipt.
- Create Purchase Receipt for items requiring an incoming inspection
- Create a Quality Inspection for said items
- Create a Serial Number for each inspected item
- Submit Purchase Receipt - error as serial number already exists
- Remove newly created serial number - error as there are insufficient serial numbers to match the quantity accepted.
I don’t have the option to make changes in the Python functions as I’m using the Frappe hosted instance.
Is there anyone with a fix for this? If not, I’ll raise a support request.
The fix is to not enter a Serial No in the Quality Inspection.
- Create Purchase Receipt with individual lines for each part that requires a Quality Inspection.
- Create Quality Inspection(s) via the Create button in the Purchase Receipt
- Do not enter the serial number(s) in the Quality Inspection(s)
- Submit the Quality Inspection(s)
- Add the Serial No to the Purchase Receipt
- Submit the Purchase Receipt
This doesn’t populate the Quality Inspection with the Serial No, but there is a link in the Purchase Receipt which can be used to tie them together. This is not ideal as it’s a lot of clicks to discover which QI is associated with which SN and vice versa.
I may have another bug - only a single Quality Inspection is referenced, but against multiple lines. Ticket open with support.