AR & AP Settlements

Hi, we purchase goods from a supplier and we sell items to the supplier as well. therefore, the Supplier A is in both AR and AP Ledgers. so, they settle our payments after deducting their outstanding (our AP balance under the same supplier A) therefore, can you advise us what is the best way to settle these? do we have to make an adjustment entry everytime?