Changing QC Status

Dear Team,

We need below changes in Quality Inspection Module.

For raising DC & Sales Invoice, we have made “Quality Inspection#” as a mandatory field.

Once we complete Quality Inspection, QC should have status “To Bill & Deliver”. And after that if we complete Invoice against this QC, QC should have status as “To Deliver”. If we raise DC after this against this QC, QC status should be “Completed”.

Kindly suggest the procedure to implement it.

I am also looking Custom Script for Purchase Receipt state “QC Done” when Quality Inspection done against that Purchase Receipt.

I appreciate your help.