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
..
2025-11-20 02:42:39 +08:00
2026-03-02 16:06:53 +08:00
2026-01-21 12:07:52 +08:00
2026-02-26 22:10:28 +08:00
2025-11-12 17:42:31 +08:00
2026-01-17 10:32:48 +08:00
2025-12-03 17:24:03 +08:00
2026-03-03 16:16:38 +08:00
2025-11-12 17:42:31 +08:00
2026-01-23 16:51:35 +08:00
2026-02-05 11:10:30 +08:00
2025-12-03 17:24:03 +08:00
2026-01-05 17:11:30 +08:00
2025-02-15 21:56:18 +08:00
2025-02-19 17:41:56 +08:00
2025-09-30 17:13:06 +08:00
2025-02-19 17:41:56 +08:00
2025-02-19 17:41:56 +08:00
2025-02-19 17:41:56 +08:00
2025-02-19 17:41:56 +08:00
2025-02-19 17:41:56 +08:00