f4705690a9ddad2431c654d88f2cda8e20d18183
Schema Changes: - Add RealisasiItem model for multiple realizations per APBDesItem - Replace realisasi field with totalRealisasi (auto-calculated sum) - Add selisih and persentase as auto-calculated fields - Cascade delete realisasi when item is deleted API Changes: - Update index.ts: Add realisasi CRUD endpoints - POST /:itemId/realisasi - Create realisasi - PUT /realisasi/:realisasiId - Update realisasi - DELETE /realisasi/:realisasiId - Delete realisasi - Update create.ts: Auto-calculate totalRealisasi=0, selisih, persentase - Update updt.ts: Reset calculations when items updated - Update findUnique.ts: Include realisasiItems in response - Update findMany.ts: Include realisasiItems in response - Remove realisasi field from ApbdesItemSchema New Files: - realisasi/create.ts - Create realisasi with auto-calculation - realisasi/update.ts - Update realisasi with recalculation - realisasi/delete.ts - Soft delete with recalculation Features: - Auto-calculate totalRealisasi from sum of all realisasiItems - Auto-calculate selisih = totalRealisasi - anggaran - Auto-calculate persentase = (totalRealisasi / anggaran) * 100 - Support for bukti file attachment - Support for keterangan (notes) per realisasi - Soft delete support for audit trail UI Updates: - Update admin detail page to use totalRealisasi instead of realisasi - Update landing page realisasiTable to use totalRealisasi Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Failed to Generate README
Description
Languages
TypeScript
99.4%
HTML
0.4%