Does anyone know how to customize the accounting entries generate in Sales Invoice? Please help.

What I want to happen is the accounts receivable trade to pair into sales external and then capital work in progress is paired with COS.

The picture shows that the capital work in progress and sales external accumulate to fill the amount of accounts receivable trade but the Accounts receivable is paired with sales external and capital work in progress paired with COS the entries

Accounts Receivable Trade(Debit) = 2,300

Sales External(Credit) = 2,300

Capital Work in Progress(Credit) = 1,300

COS(Debit) = 1,300 // from stock entry