...
Cancellation pre-invoice items must adhere to the same rules as general pre-invoice generation.
For closed accounting periods, cancelation pre-invoice items are assigned to the next open accounting period. If no pre-invoice exists, one is created.
For open accounting periods, cancelation pre-invoice items are assigned to a matching pre-invoice. If none exists, a new pre-invoice is created.
Pre-invoice items for periods with a later closed accounting period behave as though the period is closed.
Payment-related fields are ignored for calculating the invoiced date in delta-enabled scenarios.
...