Purchase Receipt: Batch No. not linked to Quality Inspection

I have setup a Quality Inspection for Items so that when the Item is received and entered as part of a Purchase Receipt, the Quality Inspection is required to be passed. The item receives a Batch No. when the Purchase Receipt is submitted.

All good so far.

However, the Quality Inspection is not linked to the Batch No. It is linked to the Purchase Receipt.

I presume this is because the Batch No. didn’t exist until after the Purchase Receipt is submitted.

Is there a way to update the Quality Inspection with the Batch No., once the batch number has been generated when the Purchase Receipt is submitted?