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…