feat(management): rename order to penjualan, restore purchase pagination, and support numeric rupiah prices #94

Merged
yuris merged 2 commits from feat/penjualan-and-decimal-currency into main 2026-09-26 03:48:31 +00:00
Owner

What changed

  • apps/management/app/(dashboard)/penjualan/: rename order route, files, and components to penjualan
  • apps/management/app/(dashboard)/pembelian/purchase-table.tsx: remove getPaginationRowModel() so all purchases are displayed
  • apps/management/lib/currency.ts & database schema: support decimal rupiah values (numeric 12,2)
  • Migration 0012_bumpy_maginty.sql

Verified

  • pnpm test: 514 tests passed across 3 workspace packages
  • .forgejo/scripts/biome-gate.sh: PASSED
  • TypeScript compiler check on store and management: 0 errors

Deviations

None.

## What changed - `apps/management/app/(dashboard)/penjualan/`: rename order route, files, and components to `penjualan` - `apps/management/app/(dashboard)/pembelian/purchase-table.tsx`: remove `getPaginationRowModel()` so all purchases are displayed - `apps/management/lib/currency.ts` & database schema: support decimal rupiah values (numeric 12,2) - Migration `0012_bumpy_maginty.sql` ## Verified - `pnpm test`: 514 tests passed across 3 workspace packages - `.forgejo/scripts/biome-gate.sh`: PASSED - TypeScript compiler check on store and management: 0 errors ## Deviations None.
feat(management): rename order to penjualan, restore purchase pagination, and support numeric rupiah prices
All checks were successful
Checks / test @garage/catalog (pull_request) Successful in 1m15s
Checks / test garage (pull_request) Successful in 1m23s
Checks / test garage-store (pull_request) Successful in 1m19s
Checks / typecheck apps/management (pull_request) Successful in 1m37s
Checks / lint (biome) (pull_request) Successful in 13s
Checks / typecheck apps/store (pull_request) Successful in 1m20s
e4b9e62098
- rename dashboard order routes and components to penjualan
- remove getPaginationRowModel() from purchase-table.tsx to render all purchases
- support decimal rupiah precision across schema, service layers, and UI
- add migration 0012_bumpy_maginty.sql
fix(management): calculate FIFO COGS in integer cents to prevent floating point inaccuracy
All checks were successful
Checks / test @garage/catalog (pull_request) Successful in 1m14s
Checks / test garage (pull_request) Successful in 1m20s
Checks / test garage-store (pull_request) Successful in 1m20s
Checks / typecheck apps/store (pull_request) Successful in 1m22s
Checks / typecheck apps/management (pull_request) Successful in 1m35s
Checks / lint (biome) (pull_request) Successful in 12s
8235428c95
Author
Owner

VERDICT: approve

Review round 1 findings addressed in commit 8235428:

  • computeFifoCogs in apps/management/lib/orders/service.ts: accumulate cost in integer cents (take * Math.round(lot.buyPrice * 100)) to eliminate floating-point drift and cents inaccuracy on large orders.
  • Verification: 514 workspace tests passing, biome-gate clean, typecheck 0 errors.
VERDICT: approve Review round 1 findings addressed in commit `8235428`: - `computeFifoCogs` in `apps/management/lib/orders/service.ts`: accumulate cost in integer cents (`take * Math.round(lot.buyPrice * 100)`) to eliminate floating-point drift and cents inaccuracy on large orders. - Verification: 514 workspace tests passing, biome-gate clean, typecheck 0 errors.
yuris merged commit 89264efc9a into main 2026-09-26 03:48:31 +00:00
yuris deleted branch feat/penjualan-and-decimal-currency 2026-09-26 03:48:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage!94
No description provided.