law-common 10.14.0 → 10.15.0
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.
|
@@ -19,8 +19,12 @@ export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
|
19
19
|
processedDate?: string;
|
|
20
20
|
paymentDetails?: string;
|
|
21
21
|
remark?: string;
|
|
22
|
+
disbursementDate?: string;
|
|
23
|
+
referenceNo?: string;
|
|
24
|
+
bankId?: number;
|
|
22
25
|
}
|
|
23
26
|
export interface IReimbursementExpenseAllocation {
|
|
27
|
+
id: number;
|
|
24
28
|
userId: number;
|
|
25
29
|
projectId: number;
|
|
26
30
|
amount: number;
|
|
@@ -45,8 +49,6 @@ export interface IReimbursementEntityCreateDto extends Omit<IEntityCreateDto<IRe
|
|
|
45
49
|
export interface IReimbursementAttatchementDocsDetails {
|
|
46
50
|
attatchmentDocumentDetails?: string[];
|
|
47
51
|
}
|
|
48
|
-
export interface IReimbursementUpdateDto extends IEntityUpdateDto<IReimbursementEntity>, IReimbursementAttatchementDocsDetails {
|
|
49
|
-
}
|
|
50
52
|
export interface IReimbursementEntityFilterDto extends IEntityFilterData<IReimbursementEntity> {
|
|
51
53
|
createdBy?: number[];
|
|
52
54
|
}
|
|
@@ -55,6 +57,6 @@ export interface IReimbursementActionDataDto {
|
|
|
55
57
|
remark?: string;
|
|
56
58
|
}
|
|
57
59
|
export interface IReimbursementUpdateDto extends IEntityUpdateDto<IReimbursementEntity> {
|
|
58
|
-
expenseDetails
|
|
60
|
+
expenseDetails?: IReimbursementExpenseAllocation[];
|
|
59
61
|
actionData?: IReimbursementActionDataDto;
|
|
60
62
|
}
|
|
@@ -31,6 +31,7 @@ exports.numberToWordsIndian = numberToWordsIndian;
|
|
|
31
31
|
exports.minutesToHoursMinutes = minutesToHoursMinutes;
|
|
32
32
|
exports.createKeyLabelMap = createKeyLabelMap;
|
|
33
33
|
exports.transformDate = transformDate;
|
|
34
|
+
exports.capitalizeFirstWord = capitalizeFirstWord;
|
|
34
35
|
const util_constants_1 = require("../constants/util.constants");
|
|
35
36
|
function groupByFunction(list, keyGetter) {
|
|
36
37
|
const map = new Map();
|
|
@@ -374,3 +375,8 @@ function createKeyLabelMap() {
|
|
|
374
375
|
function transformDate(obj) {
|
|
375
376
|
return Object.assign(Object.assign({}, obj), { date: obj.date.toISOString() });
|
|
376
377
|
}
|
|
378
|
+
function capitalizeFirstWord(str) {
|
|
379
|
+
if (!str)
|
|
380
|
+
return str;
|
|
381
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
382
|
+
}
|