nico
ac11a9367c
fix(api): correct selisih calculation formula
Bug Fix:
- Change selisih formula from: totalRealisasi - anggaran
- To: anggaran - totalRealisasi
Reason:
- Selisih positif = Sisa anggaran (belum digunakan)
- Selisih negatif = Over budget (melebihi anggaran)
Example:
- Anggaran: Rp 30.000.000
- Realisasi: Rp 5.000.000
- Selisih (OLD): 5jt - 30jt = -25jt ❌ Wrong
- Selisih (NEW): 30jt - 5jt = 25jt ✅ Correct (sisa anggaran)
Files Updated:
- create.ts: Fix initial item creation
- updt.ts: Fix item update
- realisasi/create.ts: Fix after adding realisasi
- realisasi/update.ts: Fix after updating realisasi
- realisasi/delete.ts: Fix after deleting realisasi
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-03 16:16:38 +08:00
..
2026-03-03 16:16:38 +08:00
2026-02-25 21:18:26 +08:00
2025-12-23 17:18:36 +08:00
2026-02-25 21:18:26 +08:00
2026-02-25 10:45:27 +08:00
2025-11-26 10:14:05 +08:00
2026-02-23 10:48:00 +08:00
2026-02-25 21:24:39 +08:00
2025-11-24 16:02:13 +08:00