Is it possible to repay a loan together with a sales order in ERPNext through a process known as a "

Is it possible to repay a loan together with a sales order in ERPNext using a “combined payment” method? In this scenario, for instance, if an agent is given a 500Rs loan and makes a purchase worth 1000Rs, paying a total of 1200Rs, how would the system handle the simultaneous repayment of the loan and the payment for the purchase, leaving a remaining loan amount of 300Rs?