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

Inventory Adjustment History page not displaying adjustments for current day

    Details

    • Type: Sprint Defect
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Completed
    • Affects Version/s: CFA 2021R2
    • Fix Version/s: CFA 2021R2
    • Component/s: Inventory
    • Labels:
      None
    • SCRUM Team:
      Globogym Purple Cobras
    • Story Points:
      3
    • Source Code ID(s):
    • Sprint:
      2021.R2 New Features Sprint 2

      Description

      Steps to replicate
      1) Using JAT navigate to Inventory adjustments -> Record Waste
      2) Add a new item to waste ie Chicken, Filet
      3) insert quantities, reason and click Finish.

      Expected Result
      1) Navigate to Inventory adjustments -> History
      ~ The item must be displayed on the page

      Actual Result
      ~ The item is not displayed.

      AuditLog

      select top 100 * from tbAuditlog order by 1 desc
      12:31
      Public Shared Function ProcessRawWaste(ByVal entityID As Long, ByVal itemID As Long, ByVal transactionDate As DateTime, ByVal wasteQty As Double, ByVal wasteUnit As String, ByVal clerkID As Long, ByVal clerkName As String, ByVal reason As String, ByVal comment As String) As Boolean
      Dim ret As Boolean = False
      Dim period As MxPeriod = PeriodDetailService.GetPeriodForDate_MXPeriod(transactionDate)
      Dim zoneid As Integer = 0 ' This is not used - when item is processed in inventory classes the sp return correct zone information
      Dim serviceTypeID As Integer = 9 ' Set to defsult for Waste
      Dim transaction As SqlTransaction = BeginTransaction(, IsolationLevel.RepeatableRead)
      Dim item As IInventoryItem = InventoryItemFactory.CreateInventoryItem(entityID, itemID, transactionDate, period, wasteQty, 0, wasteUnit, zoneid, serviceTypeID, transaction)
      Try
      item.UpdateInventory_Waste(clerkID, clerkName, reason, 0, MxConstants.LONG_NULL, comment, transaction)
      CommitTransaction(transaction)
      ret = True
      AuditLogService.Insert(Now, formatWasteTitle, String.Format(formatWasteApplyDate, transactionDate), String.Format("Apply Raw Waste -

      {0}", wasteQty), 0, itemID, clerkID.ToString(), clerkName, entityID.ToString())
      item.SendInventoryMessage()
      Catch
      RollbackTransaction(transaction)
      AuditLogService.Insert(Now, formatWasteTitle, String.Format(formatWasteApplyDate, transactionDate), String.Format("Apply Raw Waste Fail - {0}

      ", wasteQty), 0, itemID, clerkID.ToString(), clerkName, entityID.ToString)
      End Try
      Return ret

        Attachments

          Activity

            People

            • Assignee:
              Gareth.Leibbrandt Gareth Leibbrandt (Inactive)
              Reporter:
              Gareth.Leibbrandt Gareth Leibbrandt (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                0h
                Logged:
                Time Not Required
                Not Specified

                  PagerDuty

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