Before a provisioning order type is added to the system and order flow that uses this new order type is created, the pre-check script is run automatically. This pre-check script performs necessary checks. The following checks are performed:

  • Whether identifiers of specific order flow handlers already exist and contain specific methods. In this case, the pre-check script writes this inconsistency into a log file.
  • Whether user-defined enumerators "ORDER_PR" already exist for any accounts.


If the precheck script fails, perform the following actions:

  1. Ensure that the following identifiers exist in the “FlowHandler” table: 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 100, 25. If they do not exist, add these identifiers or replace the incorrect identifiers with the correct ones using the move_old_handlers.py script. To use this script, copy it to the BSS node and run.
  2. Rename enumerators "ORDER_PR" in PCP or RCP UI:
    1. Log in to the control panel as a provider or reseller.
    2. Go to Billing > System > Settings > More Finance Settings > Enumerator Classes.
    3. Create a copy of the existing "ORDER_PR" enumerator with configured order types and documents types.
    4. Remove the original "ORDER_PR" enumerator.
  3. Run the upgrade script.