- Introduce `periodLines` array for improved clarity and logic separation. - Update total expression to include period label for better formatting. - Move department lines and blanks to `periodLines` and merge into output at the end of each period.
- Introduce `periodLines` array for improved clarity and logic separation. - Update total expression to include period label for better formatting. - Move department lines and blanks to `periodLines` and merge into output at the end of each period.