After that, we need to settle with the supplier. In the pharmacy application, this can be done in another lower plate - Payments to suppliers. There we create a record where we indicate the amount of payment and the method of payment:
This is how we will make the posting of the goods. After payment, the upper table will indicate that we have paid the full amount, and we have no debt.