CAS Invoice Batch Expanded Details
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 15
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 40
Description
**User Story:**
As a member of the SABC Finance team (Ministry User), I need to be able to review and approve a detailed inventory of provincial grant disbursements so that SIMS can notify CAS about these disbursements and maintain up to date records of a student’s taxable income.
**Acceptance Criteria:**
- [ ] Update existing Batch Table:
- [ ] Add an expansion dropdown on batch report records with summary of amounts to each distribution type (account): BCAG-PT CR / BCAG-FT DR / SBSD CR / SBSD DR / etc
- [ ] Processing Summary: track batch responses from CAS with total invoices, total successes, total errors, total resolved. (can be in dropdown or extra table columns)
**Business Context:**
Future enhancement to provide a 'Retry' action to indicate SIMS should try to send the invoice to CAS again.
Typically when manually invoicing any errored invoices the process right now includes using a different batch name.
When retry is implemented it will be important to be able to identify through the batch reports, or another report, that these have been retried.
Possible future enhancement is to add a system generated (or other category) note on manual;y resolved invoices.
**Technical Context:**
- [ ] Add an expansion panel vuetify component (similar to the one used in the CAS supplier) for each of:

- [ ] Default all the accordions are non-expanded.
- [ ] Write an API call (suggested endpoint name: `batch-summary-totals` ) that should be triggered on expanding each of the accordion rows. This api call should make a call to 2 service methods each to retrieve data for the ACs 1 & 2 respectively.
- [ ] For the first AC, write the first service method creating the 1st SQL query to retrieve the data grouped by the `award_value_code`, `offering_intensity` and `operation_code` for each batch.
- [ ] For the 2nd AC, write the second service method creating the 2nd SQL query retrieving the count of total invoices, total successes, total errors, total resolved for the corresponding batch. Something like below:
Batch Processing Summary:
Total Invoices: 20
Pending: 0
Sent: 12
Manual: 2
Resolved: 6
- [ ] Write e2e tests for the new endpoint.
Contributor guide
No contributing guide indexed for this repository
Research direction
The payload names no repository files; begin with the existing CAS supplier expansion panel and batch report table, then trace the proposed `batch-summary-totals` endpoint and its two service methods. Use the stated grouped totals and processing-summary values as the completion check, and run the new endpoint's e2e tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql, typescript
- Domain
- api, databases, frontend, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100