Skip to content

Make investment_amount_cents NOT NULL on dividends#1612

Open
nyomanjyotisa wants to merge 1 commit intomainfrom
make-investment-amount-cents-not-null
Open

Make investment_amount_cents NOT NULL on dividends#1612
nyomanjyotisa wants to merge 1 commit intomainfrom
make-investment-amount-cents-not-null

Conversation

@nyomanjyotisa
Copy link
Member

@nyomanjyotisa nyomanjyotisa commented Feb 12, 2026

Note

Wait for both #1611 and #1610 merged and executed before merging this PR

Issue: #1596

Description

Enforce investment_amount_cents as a required field on dividends by adding a NOT NULL constraint, model validation, and updating the frontend to always display the investment amount column.


Before/After

No UI changes


AI Disclosure

Claude Opus 4.6 for code generation. All code self reviewed.

}),
]
: []),
columnHelper.accessor("investmentAmountCents", {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make investment amount column always visible since investment_amount_cents is now NOT NULL

"investmentAmountCents",
"Investment amount",
(value) => (value ? formatMoneyFromCents(value) : "N/A"),
(value) => formatMoneyFromCents(value),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove null fallback since investment_amount_cents is now NOT NULL

@nyomanjyotisa
Copy link
Member Author

@ershad Could you help to review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants