If you were using Cash Sale screen in AR module in versions below 5.XX, you may have noticed that running number for the Document was generated based on AR Payment ID sequence.
Starting from version 5 the numbering sequence had changed to be AR Invoice ID Numbering for that type of document.
However, if you still wish to retain the existing order for your document numbers, you need to apply а customization below.
1. Create public class under your customization project for CashSales screen:
2. Change the field attribute to use the above class:
3. Save and Publish the customization.
From now on, Cash Sale Numbering will be taken from ARPayment sequence, as it was before.
Please note the same approach can be used for any AutoNumbering customizations in Acumatica.
All the best,