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

Transfer Unit 1 is returning an error for ItemCode 72

    Details

    • Type: Testing Defect
    • Status: Done (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: CFA 2023R3
    • Fix Version/s: CFA 2023R3
    • Component/s: None
    • Labels:

      Description

      Scenario - when the InFORM API to Create a Transfer is called from Signal and the Transfer Unit 1 is not valid, the create fails with the error 'TransferUnit1 does not match what exists in the database'. This is correct. However with itemcode 72 we are seeing that the expected TransferUnit1 is being rejected in error possibly. 

       

      Steps - this Create Transfer works
      {
        "sendingStoreNumber": "00663",
        "receivingStoreNumber": "02693",
        "items": [
          

      {       "code": "72",       "inventoryUnitCost": 168.08,       "transferQty1": 6,       "transferQty2": 8,       "transferQty3": 8,       "transferQty4": 0,       "transferUnit1": "36 Lb Case",       "transferUnit2": "6 Lb Bag",       "transferUnit3": "Pound",       "transferUnit4": "string"     }

        ]
      }
      2) This create transfer fails 
      {
        "sendingStoreNumber": "00663",
        "receivingStoreNumber": "02693",
        "items": [
          

      {       "code": "72",       "inventoryUnitCost": 168.08,       "transferQty1": 6,       "transferQty2": 8,       "transferQty3": 8,       "transferQty4": 0,       "transferUnit1": "6/6 Lb Bag Case",       "transferUnit2": "6 Lb Bag",       "transferUnit3": "Pound",       "transferUnit4": "string"     }

        ]
      }
      Shouldn't  #2 PASS and #1 FAIL?
      How does this logic work??
       
      These are some queries used to help determine the TransferUnit1 

      --Determine Vendors @Store –

      Select * from tbVendorEntity
      where entityid = 386

      -Who are these vendors-

      Select * from tbVendor
      where vendorid in('152','155','156')

      -checkout vendor items-

      Select * from tbVendorEntityItem
      where entityid = 386
      and itemid = 14

       

      Here we see that there are 2 in question here if we are looking at this correctly - 

      36 Lb Case 101562 CHICKEN, BREAKFAST FILETS BRK

      6/6 Lb Bag Case 102033 CHICKEN, BRKFST FILET NAE BRK

       

      WHY DOES it think 36 Lb is correct? 

        Attachments

          Activity

            People

            • Assignee:
              Tristan.Strong Tristan Strong
              Reporter:
              charles.wheeler Charles Wheeler
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

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