An AP payment or a cash receipt posts to a period before the period of an invoice it pays. 422.
A payment cannot reduce a balance before the period that created it. Post to the invoice's period or a later one. The detail names each invoice and its period. Nothing is written.