Stock cases
The purpose of this doc is to capture all options between stock quantity and stock status updates with their relevant flags and internal statuses to be updated
- In the below tables N/A stands for doesn’t matter what is the value
Status triggers
| Revise Item | Update Quantity | Quantity | Product Status | Listing Status | End Item | Actions |
|---|---|---|---|---|---|---|
| Pending | N/A | Positive | != Published | Inactive | 0 | Send InStock Status, set product to Published, set update_quantity to Pending |
| Pending | N/A | Zero | != Published | Inactive | 0 | Send OutOfStock Status, set product to Product Created, set update_quantity to Pending |
| Pending | N/A | Positive | != Published | Active | 0 | Send InStock Status, set product to Published |
| Pending | N/A | Zero | != Published | Active | 0 | Send OutOfStock Status, set product to Product Created, set update_quantity to Pending |
| Pending | N/A | Positive | Published | Active | 0 | Send InStock Status, set product to Published, set update_quantity to Pending |
| Pending | N/A | Zero | Published | Active | 0 | Send OutOfStock Status, set product to Product Created, set update_quantity to Pending |
| Pending | N/A | Positive | Published | Inactive | 0 | Send InStock Status, set product to Published, set update_quantity to Pending |
| Pending | N/A | Zero | Published | Inactive | 0 | Send OutOfStock Status, set product to Product Created |
| Pending | N/A | N/A | N/A | Inactive | 1 | Send OutOfStock Status, set product to Product Created, set End Item to 0 |
Stock Triggers
| Revise Item | Update Quantity | Quantity | Product Status | Listing Status | End Item | Actions |
|---|---|---|---|---|---|---|
| N/A | Pending | Positive | Published | Active | 0 | Send Quantity, set Listing to Active |
| N/A | Pending | Zero | Published | Active | 0 | Send Quantity, set Listing to Inactive, Set Revise Item to Pending |
| N/A | Pending | Positive | Published | Inactive | 0 | Send Quantity, set Listing to Active |
| N/A | Pending | Zero | Published | Inactive | 0 | Send Quantity, set Listing to Inactive, Set Revise Item to Pending |
| N/A | Pending | Positive | != Published | Inactive | 0 | Send Quantity, set Listing to Active, Set Revise Item to Pending |
| N/A | Pending | Zero | != Published | Inactive | 0 | Send Quantity, set Listing to Inactive |
| N/A | Pending | Positive | != Published | Active | 0 | Send Quantity, set Listing to Active, Set Revise Item to Pending |
| N/A | Pending | Zero | != Published | Active | 0 | Send Quantity, set Listing to Inactive |
| N/A | N/A | N/A | N/A | N/A | 1 | Send 0, set Listing to Inactive, set Revise Item to Pending |