In the previous article about custom payment providers i have mentioned that Schema file supports several build-in formulas, like:
- Count - Count of details or nested groups in group
- TotalCount - Total lines in all nested groups
- BlockCount - Count of internal blocks including adjustments for fixed structure
- CountOneBased - CountField + 1. Required if you need calculate header or footer with details
- TotalCountOneBased - TotalCountField +1. Required if you need calculate header or footer with details
You also can add more formulas there. For example if you want to have Count that will calculate header and footer together with details you may need TotalCountTwoBased formula.
Please check this code snippet for more details:
Have a nice development!