KamoCRM

MlosMarginSchedule + MarginScheduleResolver (Phase-2 Slice 5)

Featurekamo-shared-library
Shipped
26 ஜூன், 2026 அன்று 6:54 PM UTC
Author
Kamo
Commit
2cda79c

The investor margin layer — the "+ margin_schedule" term of §8.1 step-4 price assembly. - MlosMarginSchedule (mlos_margin_schedule): rateSheetVersionId FK, productId (null=all), marginType, loanAmountLow/High band, value (raw BigDecimal), compBasis (BORROWER_PAID|LENDER_PAID). - CompBasis enum — the comp BASIS convention (how margin is paid), NOT an LO comp-plan amount; LO comp is never a scoring input (doc 13 §8.5). - MarginScheduleResolver (ungated @Component): applicable(schedules, loanAmount, compBasis) = band contains amount (inclusive, null=open) AND comp matches; totalMargin = Σ values (ZERO if none). 5 MarginScheduleResolverTest green. Pricing numbers raw BigDecimal (Slice-3 correction). NO KamoInitializer code change (catalog repo pkg registered Slice 1; indexes entity-declared) — re-run only.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing