- Sum OTE payments for each employee grouped by quarter
- Sum disbursements for each employee grouped by quarter
- Calculate variance between required disbursements and actual
- Write to
EmployeeQuarterlySuperReport.csv
(in repo directory)
EmployeeQuarterlySuperReport {
employee_code
quarter_start
total_ote_paid
total_super_payable
total_super_disbursed
variance
}
cd .\YellowCanaryCodeChallenge
dotnet run '..\Sample Super Data.xlsx'
pay_period_from
andpay_period_to
can be ignored.payment_made
is used to assign disbursements to the relevant quarterly window- This means negative variance is allowed if disbursements > super_payable for a quarter
- sadly, output
quarter_start
is formatted the same asend
in the Payslips sheet (M/d/yyyy
)
- "Fit for purpose"
- Barebones solution w/ little fanfare
- No configurability, hosted service or dependency injection
- No Typed DataSets or parsing to models
- Optimistic
- No error handling, validation, logging
- Assumes excel file contains all sheets, properly formatted
- Included one test case based on the example