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

Understated purchase Qty in DSB causing the IAR report to be inaccurate

    Details

    • Type: Customer Defect
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: CFA 2022R4
    • Fix Version/s: CFA 2022R5
    • Component/s: Inventory
    • Labels:
      None
    • VTask #:
      VTASK0500498
    • Root cause - Reason:
      Functionality new
    • Root Cause:
      improved some logging.

      Description

      -The IAR is displaying negative variances due to understated purchases qty

      -IAR Report criteria 9/11/2022 5:20 PM to 9/18/2022 1:14 PM , Restaurant # 04143

      -Many items are affected, example below 

      Potato, Waffle Fries IAR states they purchased 100 - Receive Detail shows they purchased 145.

      Select EntityID,ItemID, sDescription, SUM(fOrdered_qty) as Total_Ordered_Qty, SUM(fShipped_qty) as Total_Shipped_Qty, SUM(OriginalReceivedQty) as Total_Received_Qty ,SUM(fReturned_qty) AS Total_Returned_QtySelect EntityID,ItemID, sDescription, SUM(fOrdered_qty) as Total_Ordered_Qty, SUM(fShipped_qty) as Total_Shipped_Qty, SUM(OriginalReceivedQty) as Total_Received_Qty ,SUM(fReturned_qty) AS Total_Returned_Qtyfrom tbTransactionSupplyOrderDetail with (nolock) where ItemID = 883 and EntityID =  5247and iTransaction_num in (select iTransaction_num from tbTransactionSupplyOrder with (nolock) where EntityID =   5247 and iApply_dt between '2022-09-11 17:20:00.000' and '2022-09-18 13:14:00.000'      )Group by  EntityID,ItemID, sDescription 

      In the tbTransactionReceiveLog the purchase qty for that period is 145 as well

      Select * from tbTransactionReceiveLog with ( nolock) where EntityID = 5247 and ItemID = 883 and applyDate between '2022-09-11 17:20:00.000' and '2022-09-18 13:14:00.000' order by 1

      in Daily stock balance table, I don't see purchases for 09/12 or 09/12 

      Select * from tbDailyStockBalance where EntityID = 5247 and ItemID = 883 and BusinessDay between '2022-09-11' and '2022-09-18'

       

        Attachments

        1. image-2022-09-21-09-10-53-097.png
          16 kB
          Wesam El-Gendy
        2. image-2022-09-21-09-11-27-821.png
          16 kB
          Wesam El-Gendy
        3. image-2022-10-10-16-54-26-084.png
          510 kB
          Wesam El-Gendy
        4. image-2022-10-10-16-54-56-605.png
          510 kB
          Wesam El-Gendy
        5. screenshot-1.png
          20 kB
          Caner Saritac

          Issue Links

            Activity

              People

              • Assignee:
                stacy.privalova Stacy Privalova
                Reporter:
                wesam.el-gendy Wesam El-Gendy
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

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