Calculate the Pool report and save result in BEAS_TEMPREPORT
ReportId = GET PoolReport(PersonnelId,StationId,MaterialCalculateBoolean)
if PersonnelId or StationId not defined, the system use current connected PersonnelId,StationId
If MaterialCalculation is true, the system calculate missing material
This can take more time
Example:
Calculate for current employee
ReportId = GET PoolReport("","",true)
GET PoolReport?&$select=DocEntry,LineNumber,LineNumber2,
WorkorderRouting/Position,LineNumber3,ItemCode,
left(WorkorderRouting/Description,50),
Duration,ProcessingStartTime,ProcessingEndTime,MaterialInsufficient
&$filter=PoolReportId eq ' + poolReportId