We automated CP settlement (instructor revenue share) for the e-learning company Codepresso. Just upload the raw learning data exported from the admin, and the agent applies each contract's rules to calculate payouts and automatically produces four settlement files, each tailored to its recipient.
※ Currently in the build & validation stage (pre-production).
The admin export couldn't be used as-is, the rules differed for every contract, and each recipient needed a different file.
Study time came out in raw seconds like "8232 seconds" and dates as timestamps, so the staffer had to convert each one into hours/minutes/seconds and readable dates with Excel formulas.
Even the same course followed different rules per client (standard, carry-over, partial, conditional). Carry-over settlement especially meant manually reconciling cumulative data against the previous month. Re-enrollments were found by hand too.
The client, CP, and finance versions each carried different information and different levels of personal-data exposure, so one ledger was hand-edited into three branches for export.
The staffer only uploads the ledger. Calculation, rule application, review, and output generation are all handled by the agent.
Upload the raw admin data; the client is matched automatically.
Four settlement rules, carry-over, and re-enrollment auto-judged.
See the actual calculation before finalizing.
Finalized only after the review step.
Settlement files organized per recipient.
Upload several ledgers at once (cumulative, past to present) and it matches each client by filename and automatically converts raw seconds and timestamps into a human-readable form.
Using progress rate, enrollment date, expected end date, and re-enrollment status, it applies the rule (standard, carry-over, partial 50%, conditional) to every row automatically. The most labor-intensive parts — carry-over reconciliation and re-enrollment detection — are automated.
Before finalizing, it shows the exact same calculation on screen (a review preview) and lets you confirm only after that review. Once confirmed, four recipient-specific files are generated automatically.
Because settlement means real money, we designed the numbers on screen to match the finalized file exactly, and made the review step mandatory.
Quantified savings will be measured after go-live. Here is what has been structurally resolved so far.
Standard, carry-over, partial, and conditional rules are auto-judged on every row. The most labor-intensive parts — carry-over reconciliation and re-enrollment detection — are now automated.
The settlement engine, master management, review gate, and four output files run on the validation server. The goal is to shrink about 5 hours of monthly manual work down to minutes, and we are preparing production deployment pending the client's infrastructure discussions.
The defining choice: separating status judgment — which doesn't need the confidential prices — from the amount calculation that attaches the master, along a code boundary.