Order range
These are the order number ranges in which sellers will work.
The objective is to meet a limitation of ERP systems that cannot interpret equal order numbers, delimiting the range of order numbers for each seller. For example:
Seller A: Initial order range: 2000 (orders recorded up to the time of integration with Demander. For new companies that only use Demander, this value will be 0) Current order range: 2000 (from here the order count begins, that is, the next order issued by this seller will be numbered 2001, successively)
Final order range: 10000 (maximum number of orders enabled for this seller)
Seller B: Initial order range: 10000 Current order range: 10000 (similar to Seller A, the next order issued will be 10001)
Final order range: 18000
In this way, it is understood that both Sellers have a range of 8000 possible orders, but each in a different number, avoiding problems in the ERP system.
Companies that synchronize their ERP with Demander must make this configuration using table 02, that is, change directly within the ERP system itself.
If the company does not have its own ERP system and uses Demander, this configuration can be done directly within the seller configuration page, as described below:
The order range is in the salesperson record, when creating or editing the salesperson, on the Preferences tab.
The option Use order number range by salesperson is in Company Settings, Salesperson tab.
Using this setting is not mandatory. It depends on how the integrated ERP works.
Order range errors
Section titled “Order range errors”When the salesperson’s range is empty, out of order, or out of date on the app, the order is not saved. The messages below are the ones shown in the app.
| Message | What it means | What to do |
|---|---|---|
| The salesperson’s order number range is invalid: Check the settings in the salesperson record. | The start, current, or end range is empty or zero. | Fill in the three ranges in the salesperson’s Preferences, or in Table 02 if the company uses an ERP. Then sync the app. |
| The salesperson’s order number range is invalid: The end range must be greater than the start range. | The end of the range is less than or equal to the start. | Raise the end range above the start and sync the app. |
| The salesperson’s order number range is invalid: The current range must be greater than the start range. | The current range is before the start. | Set the current range to a number between the start and the end, then sync the app. |
| The salesperson’s order number range is invalid: The current range must be less than the end range. | The current range went past the end. The numbering is used up. | Extend the end range, or open a new range, and sync the app. |
| Invalid order number, this order already exists! | The app tried to use a number that already exists. On the Flutter app the message is “Order code ‘…’ already exists.” | Sync the app so it receives the current range. If the number is still repeated, check whether another channel uses the same salesperson, such as the online store. |
On Android without the Flutter base, the generic range message asks the user to contact support: “There is a problem with your order number range.” The fix is the same: adjust the salesperson’s range and sync.
In several cases, syncing the app is enough, because the phone still has the old range.
The range is changed in the salesperson record, when editing the salesperson, on the Preferences tab. A company with an ERP changes it through Table 02. The option Use order number range by salesperson is in Company Settings, Salesperson tab.
The online store and the app generate the same number
Section titled “The online store and the app generate the same number”The online store uses the range of the salesperson set in Company Settings, General tab, in the field Demander Web salesperson (number range).
If that same salesperson also places orders in the app, the store and the app compete for the same numbers. The result is an order with a repeated number.
Use one salesperson only for the store and for Demander Web, with a range that no field salesperson uses. The setup is in How to set up a salesperson to place orders in Demander Web.