law-common 10.0.1-beta.3 → 10.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,7 +11,7 @@ export declare class DateCodeModel {
|
|
|
11
11
|
static formatDateCode(dateCode: string): string;
|
|
12
12
|
isWithinOffset(offsetInDays: number): boolean;
|
|
13
13
|
static getFinancialYearRange(dateCodeModel: DateCodeModel): {
|
|
14
|
-
startDate:
|
|
15
|
-
endDate:
|
|
14
|
+
startDate: DateCodeModel;
|
|
15
|
+
endDate: DateCodeModel;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -70,8 +70,8 @@ class DateCodeModel {
|
|
|
70
70
|
const start = new Date(fyStartYear, 3, 1); // April 1
|
|
71
71
|
const end = new Date(fyEndYear, 2, 31); // March 31
|
|
72
72
|
return {
|
|
73
|
-
startDate: DateCodeModel.fromDate(start),
|
|
74
|
-
endDate: DateCodeModel.fromDate(end),
|
|
73
|
+
startDate: new DateCodeModel(DateCodeModel.fromDate(start)),
|
|
74
|
+
endDate: new DateCodeModel(DateCodeModel.fromDate(end)),
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
}
|