Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-14942

CloudLink - Update the SalesMainIds so we can establish Parent-Child relationships for combos and item modifiers

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      2021.R5 CloudLink Sprint 2
    • SCRUM Team:
      Globogym Purple Cobras
    • Story Points:
      2
    • Work Type Classification:
      Sustaining

      Description

      We need to investigate and then try and implement in CloudLink a similar method to: SetSalesMainId() in SalesMainDetail.cs

      public void SetSalesMainId()
              {
                  const int ChildSalesMainIdStartingIndex = 10000;
                  int newChildSalesMainId = ChildSalesMainIdStartingIndex;
      
                  foreach (SalesMainDetail salesRecord in this)
                  {
                      if (salesRecord.SequenceNo.HasValue)
                      {
                          salesRecord.SalesMainID = salesRecord.SequenceNo.Value;
      
                          if (SalesRecordIsAChild(salesRecord))
                          {
                              salesRecord.SalesMainID = newChildSalesMainId;
                              newChildSalesMainId++;
                          }
                      }
                  }
              }
      

      SalesMainId is the "PrimaryKey" in the DataSet used when sent up to eRetailer for processing.

      Because CFA makes use of Item Modifiers ("IM") and Combos we'll need to ensure that the "ParentId"s of the SalesMainRecords are set correctly

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                Gareth.Leibbrandt Gareth Leibbrandt (Inactive)
                Reporter:
                brent.jacobz Brent Jacobz (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 12.5h
                  12.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m Time Not Required
                  3h 40m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.