I want to calculate customer payment performance by profit center it is a report.
Caluation clue.
Performance is a measure of when the payment was made versus the due date calculated by the payment terms.
i want the logic to be included in the following code.