It is not possible to register a payment in an earlier period than the period the invoice has. You must either change the period on the payment (PAY) or change the period on the supplier invoice (SIN).