Transfer Material Stock Entry is not linked to Manufacturing Stock Entry in Accounting Ledger

In our ERPNext v16.21.1 manufacturing flow, the Transfer Material Stock Entry and the subsequent Manufacturing Stock Entry are not linked to each other.
As a result, in the Accounting Ledger, they are treated as separate transactions and debit/credit entries are posted independently for each document.

Is there a way to link these two Stock Entries so the accounting impact is handled as a single related flow?