We are using quality associations for auto-creating quality orders from quarantine orders, by user clicking on Report as finish in quarantine order the Quality order creates automatically with keeping quarantine order status as "Started" till Quality order completes, when Quality order completes "Pass or Fail", then user back to Quarantine order to click Report as finish in this step the status of quarantine order changes to "Reported as finish".
My Issue is:
Sometimes users need to split the quarantine order quantities before creating quality order, so they split the quarantine order quantities, so they have two quarantine orders. one is original with half of quantity and new quarantine order with other half of quantity.
Both these two splitting quarantine orders when clicking on report as finish button, the status changed to "Reported as finish" without creating Quality orders.
How can fix this issue, we need to split quantities and also creating the quality order automatically?