I am trying to set up the pos, but I receive an error when it’s time to confirm the invoice:

Could you please me help me to understand what I mistaking?
The customer already belongs to account 1310 - Debtors:

And in the POS interface everything looks ok:

Not sure if this was resolved for you in the end but I had the same error because I had put the receivables account code 1310 as the “Default account” in one of the payment methods listed in the “Mode of payment” screen. Once I had changed that it was resolved.
Hope this helps.