Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Wheels — Lifecycle Commands

wheels activate

Activate a wheel product by part number. Sets pStatus = 1.

Usage: efision -r <region> wheels activate -p <part_number>
FlagShortRequiredDescription
--part-number-pYesPart number (pNO) to activate

Workflow:

  1. Searches for matching wheel products by part number
  2. Displays matching candidates (if multiple, prompts to select one)
  3. Checks if product is already Active (warns and exits if so)
  4. Shows a confirmation prompt with product details
  5. Executes status update

Example (successful activation):

efision -r demo wheels activate -p "03424M0K35KCPAMF1ANA"
Efision Wheels Activate
============================================================

Region:       DEMO
Part Number:  03424M0K35KCPAMF1ANA

Searching for wheel product... done.

Found 1 matching product(s):

------------------------------------------------------------------------------------------
   #  ID       Part Number          Brand           Name            Status
------------------------------------------------------------------------------------------
   1  5599     03424M0K35KCPAMF1ANA                  Gusto           Inactive

Activate About to activate product:
  Product ID:    5599
  Part Number:   03424M0K35KCPAMF1ANA
  ...
  Status:        Inactive -> Active

Are you sure you want to activate this product? [y/N] yes

Updating product status... done.

OK Successfully activated wheel product 03424M0K35KCPAMF1ANA (ID: 5599)

Example (already active):

efision -r demo wheels activate -p "03424M0K20KCPAMF1ANA"
! Product 03424M0K20KCPAMF1ANA is already Active.

wheels deactivate

Deactivate a wheel product by part number. Sets pStatus = 0.

Usage: efision -r <region> wheels deactivate -p <part_number>
FlagShortRequiredDescription
--part-number-pYesPart number (pNO) to deactivate

Workflow: Same as activate, but in reverse.

Example:

efision -r demo wheels deactivate -p "03424M0K20KCPAMF1ANA"

wheels delete

Delete a wheel product by part number. Includes safety checks for business dependencies and requires interactive confirmation.

Usage: efision -r <region> wheels delete -p <part_number>
FlagShortRequiredDescription
--part-number-pYesPart number (pNO) to delete

Workflow:

  1. Searches for matching wheel products by part number
  2. Displays matching candidates (if multiple, prompts to select one)
  3. Checks 16 business dependency tables for blocking references
  4. Shows a warning with product details
  5. Requires interactive confirmation (y/N)
  6. Executes transactional delete (CategoryProduct -> ProductWheels -> Product)

Example (successful delete):

efision -r demo wheels delete -p "03424M0K35KCPAMF1ANA"
Efision Wheels Delete
============================================================

Region:       DEMO
Part Number:  03424M0K35KCPAMF1ANA

Searching for wheel product... done.
Checking business dependencies... done.

WARNING About to permanently delete:
  Product ID:    5599
  Part Number:   03424M0K35KCPAMF1ANA
  ...

This action cannot be undone!

Are you sure you want to delete this product? [y/N] yes

Deleting product... done.

OK Successfully deleted wheel product 03424M0K35KCPAMF1ANA (ID: 5599)

Example (blocked by dependencies):

efision -r demo wheels delete -p "03424M0K20KCPAMF1ANA"
ERROR Cannot delete product 03424M0K20KCPAMF1ANA - it has active business references:

  x 1 record(s) in BackOrderDetail
  x 1 record(s) in WarehouseStock
  x 1 record(s) in StockOutOrderDetail
  x 2 record(s) in StockInOrderDetail
  x 1 record(s) in PurchaseOrderItem
  x 2 record(s) in InvoiceInDetail
  x 2 record(s) in ProductModelCompanyPrice

Remove these references first before deleting the product.