How can we shift the outstanding of one customer to the other customer’s same site & other site?

Suggestion:
In the System, The shift of the outstanding of one customer to the other customer’s same site & other site can be rectified by doing the debit note of the wrongly added customer and for the actual correct customer code you should do the credit note.