Hi
I have just updated to the very latest … V13.39.1
I have set out my quality procedures on paper and would like to implement this.
During this, I noticed that , when the Child table in Quality Inspection ( Readings ) is
populated as a result of a Quality Inspection Template being selected, it yields a different
result compared to when the rows are selected and entered manually.
The default values I want are …
numeric False
manual_inspection True
Status : Default Rejected
I have set all these using “Customise Form”. But they only work when entering the Readings
(child) table in Quality Inspection, manually.
When creating a template, and selecting the template in the Quality Template field in
Quality Inspection, manual_inspection is not set and default Status for any/all lines is
“Accepted”
I had a look at the code to see what needs to be done for me to have my
manual_inspection TRUE and Status=Rejected (default).
The code I looked at was quality_inspection.js and quality_inspection.py.
I can follow the code that gets run when the field Quality Inspection Template gets
“triggered”, but with my limited JS/PY experience, I must be missing something.
I somehow suspect that the correct default values are indeed set, but that another
process is overwriting that. ( Just a feeling )
My goal is to learn how to do this, so that I can better myself, so if someone could offer some guidance I would highly appreciate it.