Home > database >  Product BOM
Product BOM

Time:05-10

The parent class number subclass units
A 10 C 1
A 20 B 2
A 30 D 2
A 30 _10 E 1
A 30 _20 F 3

Above is an A material product BOM, how A calculated through serial number A eventually need 1 C, 2 B, 2 E, six F?

CodePudding user response:

Recursive algorithm,

Multilayer order relation, until at the end of the loop through to order,

CodePudding user response:

"Parent" isn't this field should be recorded on the serial number of a layer of material, such as E and F "parent" should be recorded in the D, otherwise the superclass field meaning is less,

If recursive by serial number, it will have to break up the serial number, will be in trouble,
  • Related