Debtors and Creditor contra balances

SOLVED

I have balances for the same suppliers and customers and when a customer pays, they will deduct the value of the purchase invoice from their payment. 

In the older version of sage when a customer paid the net amount I could contra the balances off and post the net receipt.  How can I do this in sage cloud?