nico f90477ed63 fix(apbdes-edit): preserve realisasi data when editing APBDes
- Fix backend updt.ts to preserve realisasiItems from old items
  - Load existing items with realisasiItems before delete
  - Re-create realisasiItems for new items based on kode match
  - Recalculate totalRealisasi, selisih, persentase after restore

- Update frontend state to handle realisasi fields
  - Add realisasi, selisih, persentase to ApbdesItemSchema
  - Fix edit.load() to map totalRealisasi → realisasi
  - Fix edit.update() to omit calculated fields when sending to backend

- Update edit page.tsx to display realisasi data
  - Fix load data to use item.totalRealisasi (not item.realisasi)
  - Add Realisasi, Selisih, % columns to items table
  - Update handleAddItem and handleReset to preserve realisasi fields

Root cause: Backend was resetting totalRealisasi=0 for all items on update,
and frontend was accessing wrong field name (realisasi vs totalRealisasi)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-05 11:20:45 +08:00
2025-02-23 22:47:51 +08:00
2025-05-19 17:00:43 +08:00
2025-02-15 21:56:18 +08:00
2025-02-16 16:01:12 +08:00
2025-02-15 21:56:18 +08:00
2025-12-16 10:19:15 +08:00
2025-02-21 06:40:29 +08:00
2025-05-23 11:33:59 +08:00
2025-02-15 21:56:18 +08:00
2026-02-05 12:34:31 +08:00
2026-02-05 12:34:31 +08:00
2025-02-16 16:01:12 +08:00
2025-02-16 16:01:12 +08:00
2026-01-23 16:51:35 +08:00
2025-07-18 17:42:10 +08:00

Failed to Generate README

Description
No description provided
Readme 37 MiB
Languages
TypeScript 99.4%
HTML 0.4%