When customer is also supplier

Can there be a mechanism for when a company is both, your supplier for raw material AND your customer for finished product. Currently, I am maintaining such companies as both supplier and customer (separate accounts) and basically it becomes a daunting task to settle these account.

I would like to be able to see the account balance for such companies when both, payable and receivable are taken into account.

Currently, I first have to ‘receive’ money from them in manager and then ‘spend’ money in order to offset their credits and debits, whereas in reality most of these transactions dont take place and instead only the remained (payable or receivable) is actually what changes hands. This is not only a longer process but also has the possibility for an error occuring in it.

e.g:

Please follow the link

Thanks!