IDI version 26.8 is now available.  Click here for details: IDI Updates.

Validation Notes and Examples - Max Children

Prev Next

Validation of max children allowed on an account for a child catalog item

The maximum number of instances of a child catalog item allowed on an Account is determined by taking the total number of parent catalog items on the Account and multiplying it by the Max Children value.

Notes:

  • More than one parent catalog item from a Product Family can exist on an Account. Each parent can have the maximum number of children allowed.

  • All of a Product Family’s children are counted and go against the Total Max Children value, not just the instance of the child catalog item being added.

  • A child catalog item can belong to more than one Product Family. Each Product Family is validated separately.

    Example 1

    PF1 is a Product Family named PF1 with a Max Children value of 4.

    • PF1 has two parent catalog items, P1 and P2, and two child catalog items, C1 and C2.

    PF2 is a Product Family named PF2 with a Max Children value of 5.

    • PF2 has two parent catalog items, P3 and P4, and three child catalog items, C2, C3, and C4.

      Example 2

    Account 1234 has two Services, S1 and S2:

    • S1 has 1 parent catalog item (P1) and 1 child catalog item (C2).

    • S2 has 2 parent catalog items (P3, P4) and 9 child catalog items (2 C2s, 7 C3s).

    An Order is being created to add another instance of C2 to S1. To determine if the addition is allowed, the Max Children value for each Product Family is validated as follows:

    For each Product Family of the child catalog item being added (C2):

    1. Calculate the Total Max Children allowed on the Account by multiplying the number of parent instances on the Account by the Product Family’s Max Children value.

      For PF1, Total Max Children = 1 parent (P1) * 4 Max Children = 4
      For PF2, Total Max Children = 2 parents (P3, P4) * 5 Max Children = 10.

    2. Determine the number of children on the Account for each Product Family:

      For PF1, there are 3 child catalog items on the Account (1 C2 from S1 and 2 C2s from S2).
      For PF2, there are 10 child catalog items on the Account (1 C2 from S1, 2 C2s from S2, and 7 C3s from S2).

    3. Determine if adding a new instance of C2 will cause the Total Max Children value for each Product Family to be exceeded:

      For PF1, adding 1 instance of C2 brings the total number of children to 4, which does not exceed the Total Max Children value of 4. Therefore, validation passes.

      For PF2, adding 1 instance of C2 brings the total number of children to 11, which exceeds the Total Max Children value of 10. Therefore, validation fails.