refactored material track code for front end

This commit is contained in:
Infineon\StieberD
2025-01-29 16:53:28 -07:00
committed by Stieber Daniel (CSC FI SPS MESLEO)
parent c36cf5fedc
commit d7d8fc0289
14 changed files with 3273 additions and 5497 deletions

View File

@ -189,7 +189,13 @@ UpdateHALItem:
Begin Case
Case ReportID = 'materialtrack'
Error_Services('Add', 'Unsupported report')
Body = HTTP_Services('GetHTTPPostString')
If (Body NE '') then
// The POST string will have been encoded so use percent (URL) decoding.
RepJSON = HTTP_Services('DecodePercentString', Body)
Report_Services('UpdateMaterialTrackData', RepJSON)
end
Case ReportID = 'dailyperformance'
ReportDate = Http_Services('GetQueryField', 'reportDate')
// The resource will have been put into the POST string.
@ -225,3 +231,4 @@ API reports.GET
HTTP_Resource_Services('LoremIpsum')
end api