Hello,
From CU10 to CU 13 upgrade has bring in KB4016056 in my environment which has added a validation check in validatePost() method of Class TSTimesheetsPost Class.
It has added below condition
if (retVal && (tsTimesheetLine.isIntercompany()) && (_tsTimesheetTable.ApprovalStatus == TSAppStatus::Approved))
{
tsTimesheetsPost = new TSTimesheetsPost(_tsTimesheetTable);
retVal = tsTimesheetsPost.validateProjFinancialDim(_tsTimesheetTable);
}
Here tsTimesheetLine buffer has not yet been initialized and it's checking whether it's intercompany or not. Why is this check without buffer data?
This always returns true and hence goes ahead in the if condition and executes tsTimesheetsPost.validateProjFinancialDim() method. This is also new in KB4016056 .
This validateProjFinancialDim() method call is finding intercompany projects based on the default dimension of the Timesheet Line.
I feel something wrong here in this method. This gives me multiple projects of different companies and hence it fails. What is the purpose of this check here ?
Can anyone please help me understand this?
*This post is locked for comments
I have the same question (0)