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

Refactor how Distribution Centers are Assigned to Vendors : Location File

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2022.R4 New Features Sprint 4
    • SCRUM Team:
      Brotherhood of Mutants
    • Story Points:
      5
    • Work Type Classification:
      Sustaining

      Description

      Story

      As an admin, I would like to update how distribution centers are assigned to vendors via the Location File import process.

      Details

      CFA is changing systems on their end and have reproduced the Location files from the data in this new system. The syntax of the file is the same but CFA would like to send the data differently.

      Update Goal

      The goal of this update is to only change the reference for how we know a distribution center is assigned to a vendor. The rest of the functionality

      Existing Process

      When CFA sends the Location file, they include an abbreviated prefix in the <dist:DistributionCenter> attribute.

      We then use that abbreviation to determine that "MBM" is "MCLANE COMPANY INC" and we add that distribution center to the correct vendor.

      Updated Process

      CFA will no longer send us "-" in the prefix <dist:DistributionCenter> attribute. They will only send us the Distribution Center name from now on.

      As such, we have to use a different element of the file to assign the distribution center to the vendor.

      Moving forward, we should reference the "<dist:ShortName>" attribute to assign the distribution center to the vendor. We know that CFA will always send the the full vendor name in this field. Using this as a reference will allow us CFA to send whatever they want in the DC field and we can confidently assign that DC to the correct zone.

      What should happen moving forward is a follows:

      Assuming the data is formatted correctly and the vendor and short name exist already in our system:

      • CFA sends a Location file with a new distribution center.
      • InFORM recognizes that there is new data to insert that is formatted correctly.
      • InFORM references the short name to determine what vendor to assign the distribution center to
      • The distribution center is correctly assigned to the vendor using the updated reference.

      Note

      With the abbreviated names going away, we will have to map a new set of "Short Names" to the existing abbreviated prefixes. As soon as I have that list I will attach it to this ticket

      Schema Change Details

      In Progress I will provide the these details ASAP.

      AC

      1. DCs are correctly assigned to Vendors based on "Short Name" attribute in the location file.
        1. This is true for the location all file and the incremental location file.
      2. Existing functionality for the location file does not change.
        1. It fails for the same reasons it does now and it successfully imports when the data is all correct.

        Attachments

        1. CFA Prod Location xslt.txt
          19 kB
        2. DCZoneUpdate.png
          DCZoneUpdate.png
          123 kB
        3. Distribution Center names and short names mappings.xlsx
          11 kB
        4. image-2022-06-27-09-39-29-229.png
          image-2022-06-27-09-39-29-229.png
          168 kB
        5. MBMAttribute.png
          MBMAttribute.png
          26 kB
        6. NoPrefix.png
          NoPrefix.png
          24 kB
        7. production data.xlsx
          13 kB
        8. Rollback DC Zone.sql
          4 kB
        9. Rollback Vendor Short Name.sql
          1 kB
        10. screenshot-1.png
          screenshot-1.png
          76 kB
        11. Update DC Zone.sql
          4 kB
        12. Update the Zone Names.sql
          0.1 kB
        13. Update Vendor ShortName.sql
          1 kB

          Issue Links

            Activity

              People

              • Assignee:
                jason.powell Jason Powell
                Reporter:
                jason.powell Jason Powell
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 39h
                  39h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 27.5h Time Not Required
                  27.5h

                    PagerDuty

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