Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3815

For single product bundle option underlying values set must link to unique SKUs

    Details

      Description

      Single product bundle option should contain values that point to unique SKU values.
      Other sibling options in the bundle may have values that link to SKU linked by other option's value, as long as SKU set scoped to the parent option is unique.

      Valid:
      Option A: SKU1, SKU2, SKU3
      Option B: SKU4, SKU5, SKU2
      Option C: SKU6, SKU7, SKU1

      Invalid:
      Option A: SKU1, SKU2, SKU2 (invalid because of SKU2)
      Option B: SKU1, SKU3, SKU3, SKU4 (invalid because of SKU3)
      Option C: SKU5, SKU2, SKU3

      Add integration test that fails if NON-UNIQUE SKU is added to cp definition option value

      Implementation suggestions:
      provide private method _validateLinkedCPDefinitionOptionValueRel(CPDefinitionOptionValueRel) that will check current SKU against existing, sibling persisted cp definition option values.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor.beslic Igor Beslic
              Reporter:
              igor.beslic Igor Beslic
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1