feat(finance): Journal Entry form + List + API#10
Open
projectadmin-dev wants to merge 3 commits intomasterfrom
Open
feat(finance): Journal Entry form + List + API#10projectadmin-dev wants to merge 3 commits intomasterfrom
projectadmin-dev wants to merge 3 commits intomasterfrom
Conversation
added 3 commits
April 22, 2026 20:22
[User-Story] HC-002: HC Master Data & Employee Management - Add Employment Information section to UserForm with Employee ID, Job Title, Employment Type, Join Date, Work Location, Reporting Manager, Is Active - Update Zod schema to validate new HR form fields - Update detail page initialData mapping for HR fields (employee_number, role_name, employment_status join_date, is_active) - Extend PATCH API allowedFields to accept all HR fields (nik, employee_number, employment_status, join_date, position_id, department_id, grade_id, base_salary, bank_account, bank_name, npwp, bpjs_kesehatan, bpjs_ketenagakerjaan, emergency_contact_name, emergency_contact_phone, emergency_contact_relation, address, city, province, postal_code) - Add Supabase migration for hr_employee_contracts and hr_employee_documents tables - Build verified: next build passed successfully
[User-Story] HC-002: Employee Contracts & Documents Management
**Backend:**
- Add repository layer: hr-employee-contracts.ts (6 functions)
- getEmployeeContracts, getContractById, getActiveContract, createContract,
updateContract, deactivateContract, generateContractNo
- Add repository layer: hr-employee-documents.ts (8 functions)
- getEmployeeDocuments, getDocumentById, getDocumentsByType, createDocument,
updateDocument, deleteDocument, verifyDocument, getDocumentUploadUrl
- Add REST API routes: /api/hc/employee-contracts (GET, POST)
- Add REST API routes: /api/hc/employee-contracts/[id] (GET, PATCH, DELETE)
- Add REST API routes: /api/hc/employee-documents (GET, POST)
- Add REST API routes: /api/hc/employee-documents/[id] (GET, PATCH, DELETE)
- Add types: HrEmployeeContract, HrEmployeeContractInsert, HrEmployeeContractUpdate,
HrEmployeeDocument, HrEmployeeDocumentInsert, HrEmployeeDocumentUpdate
**Frontend:**
- Add EmployeeContractsTab component (read-only display with badge status)
- Add EmployeeDocumentsTab component (read-only display with verify badges)
- Add Tabs to /users/[id] page: Overview | Contracts | Documents
- Build verified: next build passed successfully
- New Journal Entry form at /finance/journal/new - COA account picker with real-time balance validation - Debit/credit line entry with PSAK double-entry rules - Auto-sum totals with balance indicator ⚠/✓ - Updated Journal List page with: - Status filter (all/draft/posted/void) - Stats cards (total debit/credit counts) - Action buttons: Post (draft only), Delete, View - API fixes: entry_number auto-generation, tenant_id on lines User Story: US-FIN-001
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fitur yang diimplementasi: