Skip to content
Astera Technology

Specify component consumption for a retail set

Keep the sold set and its component quantities linked under an explicit assembly rule.

Use the set’s component map

Synthetic shop assembles set G from two cups C and one holder H. There is no separate preassembled G stock. Selling three sets consumes six C and three H; the order still shows three sold sets. The map version used by the order must stay attached even if a later G version changes composition.

Synthetic retail-set data requirements
ConstraintRequired recordExample decision rule
CompositionSet G revision + C:2,H:1One G requires both components
Quantity grainSold sets and component units3 G → 6 C and 3 H
Stock treatmentAssemble-to-order flagNo extra preassembled G deduction
Download editable CSV ↓

Test set count and component sufficiency

Filled synthetic acceptance cases
CaseInputExpected decision
Three sets with C6/H3All component needs coveredAssembly quantity fits
Three sets with C6/H2One H missingCannot fulfil all three sets
Download editable CSV ↓
  1. Read order set revision
  2. Expand required components
  3. Compare each component
  4. Record consumption and sold sets separately

If G is already stocked as preassembled units, the stock rule must change; this assemble-to-order model cannot deduct both finished and component stock.

Two sets are sold under this map. What component quantities are required?

Show the worked answer

Four C and two H. The sales unit remains two sets, with no separate G stock deduction.

Include the composition revision and stock mode in the requirement; a set picture and one availability flag cannot establish the component decision.

Related resources

System integration services →