You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 104fc5e
Browse filesBrowse the repository at this point in the historyBrowse files
feat(Forms): default Field.InstallmentDate to days 1–28 with last day of month
Days 29–31 do not exist in every month (31 is missing from 5 months;
29/30 from February). Norwegian payment processing (Gjeldsbrevloven § 5;
AvtaleGiro) pushes late-month due dates that land on weekends/holidays
forward, which can roll charges into the next month for days near
month end.
1–28 covers Norwegian paydays (12th state, 15th private, 25th retail).
Month-end-payday customers (hourly workers, barnetrygd recipients) are
served by the 'Last day of month' option, which the payment system
resolves to the correct last day each month.
- Default range: 1–31 → 1–28
- showLastDay default: false → true (29 options total)
- days prop still allows any custom set
- showLastDay={false} still hides the option
- No pre-selected value (unchanged)
Copy file name to clipboardExpand all lines: packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/InstallmentDate/Examples.tsx
Copy file name to clipboardExpand all lines: packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/InstallmentDate/demos.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ import * as Examples from './Examples'
8
8
9
9
### Default
10
10
11
-
All 31 days shown.
11
+
Days 1–28 with "Last day of month".
12
12
13
13
<Examples.Default />
14
14
@@ -22,11 +22,11 @@ Use the `days` prop to limit available options to specific days.
22
22
23
23
<Examples.ConstrainedDays />
24
24
25
-
### With last day of month
25
+
### Without last day of month
26
26
27
-
Use `showLastDay` to append a "Last day of month" option.
27
+
Use `showLastDay={false}` to hide the "Last day of month" option.
`Field.InstallmentDate` is a dropdown-based field for selecting a day of the month, designed for recurring payment scenarios such as loan installments or standing orders.
15
15
16
-
By default it shows days 1–31. Use the `days` prop to constrain available options, and `showLastDay` to add a "Last day of month" option.
16
+
By default it shows days 1–28 plus a "Last day of month" option. Days 29–31 are excluded because they do not exist in every month, and late-month dates can roll into the next month on weekends/holidays. The "Last day of month" option serves customers paid at month end. Use the `days` prop to override the available days, and `showLastDay={false}` to remove the last day option.
0 commit comments