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

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 2022R5
    • Fix Version/s: CFA 2023R3
    • Component/s: Inventory
    • Labels:
      None
    • VTask #:
      VTASK0500498
    • Root cause - Reason:
      Functionality new
    • Root Cause:
      filtered the dsb calculation items around 5500 to 500 per store

      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. SM_MxConfig_JAT.config
          33 kB
        2. simple_sm_log.py
          2 kB
        3. simple_error_counter.py
          1 kB
        4. screenshot-1.png
          screenshot-1.png
          20 kB
        5. image-2023-01-19-14-54-35-233.png
          image-2023-01-19-14-54-35-233.png
          55 kB
        6. image-2023-01-19-14-54-17-023.png
          image-2023-01-19-14-54-17-023.png
          120 kB
        7. image-2023-01-19-14-53-52-225.png
          image-2023-01-19-14-53-52-225.png
          48 kB
        8. image-2022-10-10-16-54-56-605.png
          image-2022-10-10-16-54-56-605.png
          510 kB
        9. image-2022-10-10-16-54-26-084.png
          image-2022-10-10-16-54-26-084.png
          510 kB
        10. image-2022-09-21-09-11-27-821.png
          image-2022-09-21-09-11-27-821.png
          16 kB
        11. image-2022-09-21-09-10-53-097.png
          image-2022-09-21-09-10-53-097.png
          16 kB
        12. DSB_Before_and_After.txt
          8 kB
        13. 222222.PNG
          222222.PNG
          461 kB
        14. 11111.PNG
          11111.PNG
          454 kB

          Issue Links

            Activity

              People

              • Assignee:
                charles.wheeler Charles Wheeler
                Reporter:
                wesam.el-gendy Wesam El-Gendy
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

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