feature(Periodisk redovisning): Man kan nu bara göra periodisk redovisning ifall Gemensam planering är gjord (TV-808)
Squashed commit of the following: commit b2f7ac185f7cbd1725627201e533bc3508b5c174 Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se> Date: Tue Oct 26 17:01:40 2021 +0200 En Gemensam planering måste ha mottagits för att en Periodisk redovisning ska kunna skapas.
This commit is contained in:
@@ -30,6 +30,7 @@ export interface AvropResponse {
|
||||
handledareCiamUserId: string;
|
||||
handledare: string;
|
||||
recievedTimestamp: Date;
|
||||
hasGemensamPlanering: boolean;
|
||||
}
|
||||
|
||||
export interface AvropApiResponse {
|
||||
|
||||
@@ -26,6 +26,7 @@ export interface Avrop extends AvropCompact {
|
||||
handledareCiamUserId: string;
|
||||
handledare: string;
|
||||
receivedTimestamp: Date;
|
||||
hasGemensamPlanering: boolean;
|
||||
}
|
||||
|
||||
export interface AvropCompactData {
|
||||
@@ -52,6 +53,7 @@ export function mapAvropResponseToAvrop(data: AvropResponse): Avrop {
|
||||
handledareCiamUserId,
|
||||
handledare,
|
||||
recievedTimestamp,
|
||||
hasGemensamPlanering,
|
||||
} = data;
|
||||
|
||||
return {
|
||||
@@ -73,5 +75,6 @@ export function mapAvropResponseToAvrop(data: AvropResponse): Avrop {
|
||||
handledareCiamUserId: handledareCiamUserId,
|
||||
handledare,
|
||||
receivedTimestamp: new Date(recievedTimestamp),
|
||||
hasGemensamPlanering,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user