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

Update Sales Item Import to use xRef for Country

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      CFAMX 2021R1 Sprint 2
    • SCRUM Team:
      Brotherhood of Mutants
    • Story Points:
      2
    • Work Type Classification:
      Sustaining

      Description

      As a system I want the Sales Item Import to be updated to use the Country Codes that CFA pass to us so that the zones are no longer hard coded

      Notes

      • Sales Item Import
      • Use zone xref to identify Location - CountryName zone
        • Currently it's hardcoded to look at the UN and Canada zone

      Current process to generate Sales Item Import
      Input

      • CFA Sends -> Sales Item csv
        • CFA will start to include the Country Code in this file, see CFAMX-8169

      Sales Item csv gets Run thru SSIS Package

      Output of SSIS Package

      • Sales Item Master csv
        • This file will include the Country Code that was in the Sales Item csv (this is already implemented)
        • The import process needs to be updated, to not translate the Country Codes directly to the Zones (which is hard coded), but instead look at tbZone.ZoneExtRef and identify the zone that way
      • POS Item Mapping csv
      • Sales Item Change csv

      Database

      • Ensure that Puerto Rico is available in Entity Manager

      Confluence: https://cfacorp.atlassian.net/wiki/spaces/IN/pages/609157821/Sales+Item+Import

      Acceptance Criteria

      1. Confirm that after the deployment of Code, that Puerto Rico is created and available as a Country in Entity Manager
      2. Confirm that a script is made available to the Delivery Team to update the ZoneExtRef in tbZone
      3. Confirm when a Sales Item Import is processed and the new zone field is not supplied, that an entity sales item is created at all entities and marked as Active at all entities
      4. Confirm when a Sales Item Import is processed and the new zone field is supplied, and the data in the field corresponds to a zone in InFORM, based on the ZoneExtRef, an entity sales item is created at all entities but marked as Active only at the stores within that zone
      5. Confirm when a Sales Item Import is processed and the new zone field is supplied, if the data supplied in the zone field does not correspond to a zone in InFORM, based on the ZoneExtRef, the record is rejected and skipped, with the error being written to the log file
      6. Notes about the Status: Can be Y, 1, A, ACTIVE, TRUE, or T to set status to "Active". Any other value sets status to "Inactive".
      7. Confirm that if the Status is set to D for a Sales Item the all associated Entity Sales Item are set to Inactive
      8. Confirm that Confluence is updated to reflect the new zone column
      Notes from CFAMX-10020, the previous implementation of this

      Implementation Notes:
      1) Import should still function on old Import File Style (no CountryCode column added at all). In that case it should also perform exactly as before.
      2) If "Status" is "D" (or another inactive marker) then it will ignore the CountryCode and deactivate on all stores.
      3) We are currently hard-coding CountryCodes "US" and "CA" to "Location - CountryName" Zones "United States" and "Canada" respectively.
      4) If CountryCode is left blank, then we will activate for all Stores

        Attachments

          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 - 23h
                  23h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 16.75h Time Not Required
                  16.75h

                    PagerDuty

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