Skip to content

Commit

Permalink
[KAIZEN-0] vis siste endret dato og kilde av kontonummer
Browse files Browse the repository at this point in the history
  • Loading branch information
abrhanav committed Nov 15, 2023
1 parent db01ed8 commit 8fb22ba
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 323 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ function onDatoChange(props: Props, dato: Partial<Periode>) {
});
}

const tidligsteDato = dayjs().subtract(3, 'years').startOf('year');
const senesteDato: Dayjs = dayjs();

const isoTidligsteDato = tidligsteDato.format(ISO_DATE_STRING_FORMAT);
const isoSenesteDato = senesteDato.format(ISO_DATE_STRING_FORMAT);

const periodeValidering = [
Expand All @@ -55,12 +53,6 @@ const periodeValidering = [
return til.isAfter(senesteDato);
},
feilmelding: `Du kan ikke velge dato etter ${senesteDato.format(INPUT_DATE_STRING_FORMAT)}`
},
{
erUgyldig(fra: Dayjs, til: Dayjs) {
return fra.isBefore(tidligsteDato);
},
feilmelding: `Du kan ikke velge en dato før ${tidligsteDato.format(INPUT_DATE_STRING_FORMAT)}`
}
];

Expand All @@ -81,7 +73,6 @@ function EgendefinertDatoInputs(props: Props) {
const til = props.filter.periode.egendefinertPeriode.til;
const periodeFeilmelding = getDatoFeilmelding(fra, til);
const avgrensninger: DatepickerLimitations = {
minDate: isoTidligsteDato,
maxDate: isoSenesteDato
};

Expand Down
13 changes: 1 addition & 12 deletions src/app/personside/infotabs/utbetalinger/filter/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ import dayjs from 'dayjs';
import { ISO_DATE_STRING_FORMAT } from 'nav-datovelger/lib/utils/dateFormatUtils';
import MediaQueryAwareRenderer from '../../../../../components/MediaQueryAwareRenderer';
import utbetalingerResource from '../../../../../rest/resources/utbetalingerResource';
import IfFeatureToggleOn from '../../../../../components/featureToggle/IfFeatureToggleOn';
import { FeatureToggles } from '../../../../../components/featureToggle/toggleIDs';
import IfFeatureToggleOff from '../../../../../components/featureToggle/IfFeatureToggleOff';
import NyEgendefinertDatoInputs from './NyEgendefinertDatoInputs';

const FiltreringsPanel = styled(Panel)`
padding: ${pxToRem(15)};
Expand Down Expand Up @@ -155,14 +151,7 @@ function Filtrering() {
{radios}
</FieldSet>
{filter.periode.radioValg === PeriodeValg.EGENDEFINERT && (
<>
<IfFeatureToggleOn toggleID={FeatureToggles.BrukUtvidetUtbetalingsSporring}>
<NyEgendefinertDatoInputs filter={filter} updateFilter={updateFilter} />
</IfFeatureToggleOn>
<IfFeatureToggleOff toggleID={FeatureToggles.BrukUtvidetUtbetalingsSporring}>
<EgendefinertDatoInputs filter={filter} updateFilter={updateFilter} />
</IfFeatureToggleOff>
</>
<EgendefinertDatoInputs filter={filter} updateFilter={updateFilter} />
)}
<KnappWrapper>
<Knapp onClick={reloadUtbetalinger} spinner={visSpinner} htmlType="button">
Expand Down

This file was deleted.

2 changes: 2 additions & 0 deletions src/app/personside/visittkort-v2/PersondataDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,14 @@ export interface OrganisasjonSomAdressat {
export interface Bankkonto {
kontonummer: string;
banknavn: string | null;
kilde: string | null;
sistEndret: SistEndret | null;
bankkode: string | null;
swift: string | null;
landkode: KodeBeskrivelse<string> | null;
adresse: Adresse | null;
valuta: KodeBeskrivelse<string> | null;
opprettetAv: string | null;
}

export interface TilrettelagtKommunikasjon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,16 @@ exports[`viser info om bruker i visittkortbody 1`] = `
>
Endret
15.03.2006
av bruker
</p>
</div>
<div
className="c7"
>
<p
className="typo-undertekst"
>
Kilde
Kontoregister
</p>
</div>
</div>
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8fb22ba

Please sign in to comment.