ZEVA 2 - Credit Agreements
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 6
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 32
Description
**Goal**
Enable government users to issue credits to suppliers based on initiative and purchase agreements, ensuring compliance with legislative requirements and continuity with ZEVA1 functionality.
**User Roles**
• IDIR Users
• Analyst: Can create and edit credit agreements.
• Director: Can approve and issue credits associated with agreements.
**Functional Elements**
1. Credit Agreement Types
• Initiative Agreements: Agreements tied to specific government initiatives.
• Purchase Agreements: Agreements based on credit purchases.
2. User Actions
• View Agreements: List and filter existing agreements.
• Create Agreement: Enter agreement details and associated credit values.
• Edit Agreement: Update agreement terms prior to issuance.
• Issue Agreement: Finalize and issue credits to the supplier.
3. Data Model and Storage
Agreements are stored with metadata including:
- Supplier
- Agreement type
- Credit values
- Status (e.g., Draft, Finalized, Issued)
- Timestamps and user actions
4. Interface Components
• List View: Displays all agreements with filtering and sorting.
• Detail View: Shows full agreement details and available actions.
5. Authorization and Security
Role-based access control ensures only authorized users can create, edit, or issue agreements.
Uses auth() to validate permissions.
**Workflow Summary**
1. Analyst creates a draft credit agreement.
2. Analyst edits and finalizes the agreement details.
3. Director reviews and issues the agreement.
4. Credits are issued to the supplier and recorded in the system.
**Dependencies and Relationships**
• ZEV Units Epic: Issued agreements result in ZEV unit transactions.
• User Management Epic: Determines who can perform each action.
• Credit Applications Epic: Agreements may complement or substitute credit applications in some cases.
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin by reviewing existing ZEVA1 credit-agreement behavior and the related ZEV Units, User Management, and Credit Applications work. Identify the agreement data model, list and detail entry points, and auth() permission checks. Done means analysts can manage drafts and directors can issue agreements with the required supplier credit records and role restrictions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authorization, full-stack
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100