Enabling Number Range History
← Configuring Invoice Numbering
In case of issues or disputes with respect to the sequence of JustOn's numbering, you may may need some detailed tracking or debugging information about the number range usage.
To this end, JustOn Billing & Invoice Management uses dedicated history fields and history tracking for number ranges. The feature may have to be explicitly activated in your org. In addition, you can make the history data visible to users.
Number range history data
For each generated number, the following information is recorded:
Field | Description |
---|---|
Counter | The current count for this number range. |
Timestamp | The date and time of the latest count increase. |
Target ID | The Salesforce ID of the record on which the counter has been used the last time. |
Last Generated Name | The last produced counter (invoice number, etc.) |
In addition, each history record includes
- The name of the user who triggered the counter generation
- The last value and the current value for
Counter
,Timestamp
,Target ID
andLast Generated Name
.
Activating Field History Tracking
In newer installations, JustOn automatically writes the number range history data. If you are upgrading JustOn from a pre-2.63 version, however, you must explicitly activate history tracking for all relevant Number Range fields.
- Navigate to the object management settings of the Number Range object.
- On the Details page, click Edit.
- In the Optional Features section, select the checkbox
Track Field History
. - Click Save.
- Click Fields & Relationships.
- Click Set History Tracking.
-
Select the checkboxes for the following fields:
Account
Counter
Counter Name
Day
Last Generated Name
Month
Target Id
Timestamp
Year
-
Click Save.
Displaying Number Range History
To make the history data visible on the detail page of number range records, you add the corresponding fields and the related list to the Number Range object.
- Navigate to the object management settings of the Number Range object.
- Click Page Layouts.
- In the Number Range Layout row, click Edit.
-
From the Fields palette, drag the
Timestamp
,Target ID
andLast Generated Name
fields to the Number Range Detail section.Optionally, you can create a dedicated section for the history fields.
-
From the Related Lists palette, drag the Number Range History list to the Related Lists section.
- Click Save.
- In the object management settings of the Number Range object, click Lightning Record Pages.
- Open the Number Range page details, and click Edit.
-
Drag the Related Lists component to the Number Range record page.
This component displays all assigned related lists.
-
Click Save.
-
Click Activate.
On the App Default sub-tab, assign the page as the app default for JustOn.
For help about modifying page layouts, see Managing Pages.