gemcap-be-common 1.5.40 → 1.5.42
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.
- package/classes/sales-item.d.ts +16 -0
- package/classes/sales-item.js +23 -0
- package/classes/sales-item.ts +28 -0
- package/db/collaterals.db.d.ts +5 -1
- package/db/collaterals.db.js +3 -0
- package/db/collaterals.db.ts +3 -0
- package/enums/collaterals.enum.d.ts +1 -0
- package/enums/collaterals.enum.js +1 -0
- package/enums/collaterals.enum.ts +1 -0
- package/helpers/column-desciptions.helper.js +29 -0
- package/helpers/column-desciptions.helper.ts +29 -0
- package/models/AccountPayableItem.model.d.ts +6 -6
- package/models/BBCSheet.model.js +2 -0
- package/models/BBCSheet.model.ts +2 -0
- package/models/Borrower.model.d.ts +3 -3
- package/models/BorrowerCompliance.model.d.ts +12 -12
- package/models/BorrowerDataContact.model.d.ts +3 -3
- package/models/BorrowerDataInsurance.model.d.ts +3 -3
- package/models/BorrowerSettings.model.d.ts +24 -24
- package/models/Equipment.model.d.ts +9 -9
- package/models/FinancialCompliance.model.d.ts +12 -12
- package/models/FinancialComplianceBorrower.model.d.ts +6 -6
- package/models/Inventory.model.d.ts +9 -9
- package/models/InventoryAvailability.model.d.ts +21 -21
- package/models/InventoryAvailabilityItem.model.d.ts +3 -3
- package/models/InventoryItem.model.d.ts +12 -12
- package/models/InventoryManualEntry.model.d.ts +9 -9
- package/models/InventorySeasonalRates.model.d.ts +3 -3
- package/models/LoanBroker.model.d.ts +6 -6
- package/models/LoanCharges.model.d.ts +12 -12
- package/models/LoanPayment.model.d.ts +3 -3
- package/models/LoanProducts.model.d.ts +9 -9
- package/models/LoanStatementStatus.model.d.ts +6 -6
- package/models/LoanStatementTransaction.model.d.ts +9 -9
- package/models/LoanTransactionFile.model.d.ts +3 -3
- package/models/MicroserviceTask.model.d.ts +3 -3
- package/models/PostponedTransactions.model.d.ts +3 -3
- package/models/ProductBroker.model.d.ts +12 -12
- package/models/Receivable.model.d.ts +3 -3
- package/models/ReceivableAvailability.model.d.ts +27 -27
- package/models/ReceivableAvailabilityItem.model.d.ts +57 -57
- package/models/ReceivableItem.model.d.ts +6 -6
- package/models/Reserve.model.d.ts +9 -9
- package/models/Sales.model.d.ts +106 -0
- package/models/Sales.model.js +66 -0
- package/models/Sales.model.ts +85 -0
- package/models/SalesItem.model.d.ts +97 -0
- package/models/SalesItem.model.js +45 -0
- package/models/SalesItem.model.ts +84 -0
- package/models/TermLoan.model.d.ts +3 -3
- package/models/TermLoanCalculated.model.d.ts +18 -18
- package/models/UploadedFile.model.d.ts +3 -3
- package/models/UploadedSheet.model.d.ts +3 -3
- package/models/_index.d.ts +6 -6
- package/models/_models.d.ts +2 -0
- package/models/_models.js +2 -0
- package/models/_models.ts +2 -0
- package/package.json +1 -1
- package/services/compliance-borrowers.service.d.ts +1 -1
- package/services/nodemailer.service.js +4 -5
- package/services/nodemailer.service.ts +1 -0
- package/services/uploads.service.js +2 -0
- package/services/uploads.service.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -53,14 +53,13 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
53
53
|
createdAt: NativeDate;
|
|
54
54
|
updatedAt: NativeDate;
|
|
55
55
|
} & {
|
|
56
|
-
date: Date;
|
|
57
56
|
borrowerId: mongoose.Types.ObjectId;
|
|
57
|
+
date: Date;
|
|
58
58
|
items: mongoose.Types.DocumentArray<{
|
|
59
|
-
active: boolean;
|
|
60
59
|
type: string;
|
|
60
|
+
active: boolean;
|
|
61
61
|
amount: number;
|
|
62
62
|
inventoryName: string;
|
|
63
|
-
advanceRate?: number;
|
|
64
63
|
productId?: {
|
|
65
64
|
prototype?: mongoose.Types.ObjectId;
|
|
66
65
|
cacheHexString?: unknown;
|
|
@@ -70,6 +69,7 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
70
69
|
createFromBase64?: {};
|
|
71
70
|
isValid?: {};
|
|
72
71
|
};
|
|
72
|
+
advanceRate?: number;
|
|
73
73
|
}>;
|
|
74
74
|
__v?: number;
|
|
75
75
|
summary?: {
|
|
@@ -108,14 +108,13 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
108
108
|
createdAt: NativeDate;
|
|
109
109
|
updatedAt: NativeDate;
|
|
110
110
|
} & {
|
|
111
|
-
date: Date;
|
|
112
111
|
borrowerId: mongoose.Types.ObjectId;
|
|
112
|
+
date: Date;
|
|
113
113
|
items: mongoose.Types.DocumentArray<{
|
|
114
|
-
active: boolean;
|
|
115
114
|
type: string;
|
|
115
|
+
active: boolean;
|
|
116
116
|
amount: number;
|
|
117
117
|
inventoryName: string;
|
|
118
|
-
advanceRate?: number;
|
|
119
118
|
productId?: {
|
|
120
119
|
prototype?: mongoose.Types.ObjectId;
|
|
121
120
|
cacheHexString?: unknown;
|
|
@@ -125,6 +124,7 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
125
124
|
createFromBase64?: {};
|
|
126
125
|
isValid?: {};
|
|
127
126
|
};
|
|
127
|
+
advanceRate?: number;
|
|
128
128
|
}>;
|
|
129
129
|
__v?: number;
|
|
130
130
|
summary?: {
|
|
@@ -163,14 +163,13 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
163
163
|
createdAt: NativeDate;
|
|
164
164
|
updatedAt: NativeDate;
|
|
165
165
|
} & {
|
|
166
|
-
date: Date;
|
|
167
166
|
borrowerId: mongoose.Types.ObjectId;
|
|
167
|
+
date: Date;
|
|
168
168
|
items: mongoose.Types.DocumentArray<{
|
|
169
|
-
active: boolean;
|
|
170
169
|
type: string;
|
|
170
|
+
active: boolean;
|
|
171
171
|
amount: number;
|
|
172
172
|
inventoryName: string;
|
|
173
|
-
advanceRate?: number;
|
|
174
173
|
productId?: {
|
|
175
174
|
prototype?: mongoose.Types.ObjectId;
|
|
176
175
|
cacheHexString?: unknown;
|
|
@@ -180,6 +179,7 @@ export declare const EquipmentSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
180
179
|
createFromBase64?: {};
|
|
181
180
|
isValid?: {};
|
|
182
181
|
};
|
|
182
|
+
advanceRate?: number;
|
|
183
183
|
}>;
|
|
184
184
|
__v?: number;
|
|
185
185
|
summary?: {
|
|
@@ -34,52 +34,52 @@ export interface IFinancialComplianceSettings {
|
|
|
34
34
|
export interface IFinancialComplianceSettingsDocument extends IFinancialComplianceSettings, Document {
|
|
35
35
|
}
|
|
36
36
|
export declare const FinancialComplianceSettingsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
37
|
-
isDeleted: boolean;
|
|
38
37
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
39
|
-
title?: string;
|
|
40
38
|
email?: string;
|
|
39
|
+
title?: string;
|
|
41
40
|
isActive?: boolean;
|
|
42
41
|
}>;
|
|
42
|
+
isDeleted: boolean;
|
|
43
43
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
44
|
-
title?: string;
|
|
45
44
|
email?: string;
|
|
45
|
+
title?: string;
|
|
46
46
|
isActive?: boolean;
|
|
47
47
|
}>;
|
|
48
48
|
__v?: number;
|
|
49
|
-
invoiceSentDate?: Date;
|
|
50
49
|
dueDate?: Date;
|
|
50
|
+
invoiceSentDate?: Date;
|
|
51
51
|
stopFundingDate?: Date;
|
|
52
52
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
53
|
-
isDeleted: boolean;
|
|
54
53
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
55
|
-
title?: string;
|
|
56
54
|
email?: string;
|
|
55
|
+
title?: string;
|
|
57
56
|
isActive?: boolean;
|
|
58
57
|
}>;
|
|
58
|
+
isDeleted: boolean;
|
|
59
59
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
60
|
-
title?: string;
|
|
61
60
|
email?: string;
|
|
61
|
+
title?: string;
|
|
62
62
|
isActive?: boolean;
|
|
63
63
|
}>;
|
|
64
64
|
__v?: number;
|
|
65
|
-
invoiceSentDate?: Date;
|
|
66
65
|
dueDate?: Date;
|
|
66
|
+
invoiceSentDate?: Date;
|
|
67
67
|
stopFundingDate?: Date;
|
|
68
68
|
}>> & mongoose.FlatRecord<{
|
|
69
|
-
isDeleted: boolean;
|
|
70
69
|
financialEmails: mongoose.Types.DocumentArray<{
|
|
71
|
-
title?: string;
|
|
72
70
|
email?: string;
|
|
71
|
+
title?: string;
|
|
73
72
|
isActive?: boolean;
|
|
74
73
|
}>;
|
|
74
|
+
isDeleted: boolean;
|
|
75
75
|
managementEmails: mongoose.Types.DocumentArray<{
|
|
76
|
-
title?: string;
|
|
77
76
|
email?: string;
|
|
77
|
+
title?: string;
|
|
78
78
|
isActive?: boolean;
|
|
79
79
|
}>;
|
|
80
80
|
__v?: number;
|
|
81
|
-
invoiceSentDate?: Date;
|
|
82
81
|
dueDate?: Date;
|
|
82
|
+
invoiceSentDate?: Date;
|
|
83
83
|
stopFundingDate?: Date;
|
|
84
84
|
}> & {
|
|
85
85
|
_id: mongoose.Types.ObjectId;
|
|
@@ -53,11 +53,11 @@ export interface IFinancialComplianceBorrowerDocumentWithMails extends IFinancia
|
|
|
53
53
|
financialEmails: IEmailRecipient[];
|
|
54
54
|
}
|
|
55
55
|
export declare const FinancialComplianceBorrowerSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
56
|
-
isDeleted: boolean;
|
|
57
56
|
borrower: mongoose.Types.ObjectId;
|
|
57
|
+
isDeleted: boolean;
|
|
58
58
|
__v?: number;
|
|
59
|
-
invoiceSentDate?: Date;
|
|
60
59
|
dueDate?: Date;
|
|
60
|
+
invoiceSentDate?: Date;
|
|
61
61
|
stopFundingDate?: Date;
|
|
62
62
|
lastReminderSentAt?: Date;
|
|
63
63
|
accountClearedDate?: Date;
|
|
@@ -69,11 +69,11 @@ export declare const FinancialComplianceBorrowerSchema: mongoose.Schema<any, mon
|
|
|
69
69
|
balanceOutstanding?: number;
|
|
70
70
|
reminderCounter?: number;
|
|
71
71
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
72
|
-
isDeleted: boolean;
|
|
73
72
|
borrower: mongoose.Types.ObjectId;
|
|
73
|
+
isDeleted: boolean;
|
|
74
74
|
__v?: number;
|
|
75
|
-
invoiceSentDate?: Date;
|
|
76
75
|
dueDate?: Date;
|
|
76
|
+
invoiceSentDate?: Date;
|
|
77
77
|
stopFundingDate?: Date;
|
|
78
78
|
lastReminderSentAt?: Date;
|
|
79
79
|
accountClearedDate?: Date;
|
|
@@ -85,11 +85,11 @@ export declare const FinancialComplianceBorrowerSchema: mongoose.Schema<any, mon
|
|
|
85
85
|
balanceOutstanding?: number;
|
|
86
86
|
reminderCounter?: number;
|
|
87
87
|
}>> & mongoose.FlatRecord<{
|
|
88
|
-
isDeleted: boolean;
|
|
89
88
|
borrower: mongoose.Types.ObjectId;
|
|
89
|
+
isDeleted: boolean;
|
|
90
90
|
__v?: number;
|
|
91
|
-
invoiceSentDate?: Date;
|
|
92
91
|
dueDate?: Date;
|
|
92
|
+
invoiceSentDate?: Date;
|
|
93
93
|
stopFundingDate?: Date;
|
|
94
94
|
lastReminderSentAt?: Date;
|
|
95
95
|
accountClearedDate?: Date;
|
|
@@ -63,13 +63,13 @@ export declare const InventorySchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
63
63
|
category: string;
|
|
64
64
|
sku: string;
|
|
65
65
|
qty: number;
|
|
66
|
-
location?: string;
|
|
67
|
-
lotNumber?: string;
|
|
68
|
-
expiryDate?: Date;
|
|
69
66
|
unitCost?: number;
|
|
67
|
+
expiryDate?: Date;
|
|
68
|
+
location?: string;
|
|
70
69
|
skuDescription1?: string;
|
|
71
70
|
skuDescription2?: string;
|
|
72
71
|
skuDescription3?: string;
|
|
72
|
+
lotNumber?: string;
|
|
73
73
|
}>;
|
|
74
74
|
__v?: number;
|
|
75
75
|
comment?: string;
|
|
@@ -90,13 +90,13 @@ export declare const InventorySchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
90
90
|
category: string;
|
|
91
91
|
sku: string;
|
|
92
92
|
qty: number;
|
|
93
|
-
location?: string;
|
|
94
|
-
lotNumber?: string;
|
|
95
|
-
expiryDate?: Date;
|
|
96
93
|
unitCost?: number;
|
|
94
|
+
expiryDate?: Date;
|
|
95
|
+
location?: string;
|
|
97
96
|
skuDescription1?: string;
|
|
98
97
|
skuDescription2?: string;
|
|
99
98
|
skuDescription3?: string;
|
|
99
|
+
lotNumber?: string;
|
|
100
100
|
}>;
|
|
101
101
|
__v?: number;
|
|
102
102
|
comment?: string;
|
|
@@ -117,13 +117,13 @@ export declare const InventorySchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
117
117
|
category: string;
|
|
118
118
|
sku: string;
|
|
119
119
|
qty: number;
|
|
120
|
-
location?: string;
|
|
121
|
-
lotNumber?: string;
|
|
122
|
-
expiryDate?: Date;
|
|
123
120
|
unitCost?: number;
|
|
121
|
+
expiryDate?: Date;
|
|
122
|
+
location?: string;
|
|
124
123
|
skuDescription1?: string;
|
|
125
124
|
skuDescription2?: string;
|
|
126
125
|
skuDescription3?: string;
|
|
126
|
+
lotNumber?: string;
|
|
127
127
|
}>;
|
|
128
128
|
__v?: number;
|
|
129
129
|
comment?: string;
|
|
@@ -88,30 +88,30 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
|
|
|
88
88
|
createdAt: NativeDate;
|
|
89
89
|
updatedAt: NativeDate;
|
|
90
90
|
} & {
|
|
91
|
-
bbcDateId: mongoose.Types.ObjectId;
|
|
92
91
|
borrowerId: mongoose.Types.ObjectId;
|
|
93
92
|
status: string;
|
|
93
|
+
bbcDateId: mongoose.Types.ObjectId;
|
|
94
94
|
summary: mongoose.Types.DocumentArray<{
|
|
95
95
|
order: number;
|
|
96
|
-
advanceRate: number;
|
|
97
|
-
availability: number;
|
|
98
96
|
inventoryName: string;
|
|
99
|
-
isGroup: boolean;
|
|
100
97
|
totalQty: number;
|
|
101
98
|
totalValue: number;
|
|
99
|
+
advanceRate: number;
|
|
100
|
+
availability: number;
|
|
101
|
+
isGroup: boolean;
|
|
102
102
|
}>;
|
|
103
103
|
useManualInputs: boolean;
|
|
104
104
|
filters: mongoose.Types.DocumentArray<{
|
|
105
105
|
active: boolean;
|
|
106
|
+
valid: boolean;
|
|
107
|
+
inventoryName: string;
|
|
106
108
|
advanceRate: number;
|
|
107
109
|
queries: mongoose.Types.DocumentArray<{
|
|
108
110
|
filter: string;
|
|
109
|
-
conjunction: string;
|
|
110
111
|
field: string;
|
|
112
|
+
conjunction: string;
|
|
111
113
|
filterValue: any;
|
|
112
114
|
}>;
|
|
113
|
-
inventoryName: string;
|
|
114
|
-
valid: boolean;
|
|
115
115
|
}>;
|
|
116
116
|
__v?: number;
|
|
117
117
|
options?: {
|
|
@@ -121,30 +121,30 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
|
|
|
121
121
|
createdAt: NativeDate;
|
|
122
122
|
updatedAt: NativeDate;
|
|
123
123
|
} & {
|
|
124
|
-
bbcDateId: mongoose.Types.ObjectId;
|
|
125
124
|
borrowerId: mongoose.Types.ObjectId;
|
|
126
125
|
status: string;
|
|
126
|
+
bbcDateId: mongoose.Types.ObjectId;
|
|
127
127
|
summary: mongoose.Types.DocumentArray<{
|
|
128
128
|
order: number;
|
|
129
|
-
advanceRate: number;
|
|
130
|
-
availability: number;
|
|
131
129
|
inventoryName: string;
|
|
132
|
-
isGroup: boolean;
|
|
133
130
|
totalQty: number;
|
|
134
131
|
totalValue: number;
|
|
132
|
+
advanceRate: number;
|
|
133
|
+
availability: number;
|
|
134
|
+
isGroup: boolean;
|
|
135
135
|
}>;
|
|
136
136
|
useManualInputs: boolean;
|
|
137
137
|
filters: mongoose.Types.DocumentArray<{
|
|
138
138
|
active: boolean;
|
|
139
|
+
valid: boolean;
|
|
140
|
+
inventoryName: string;
|
|
139
141
|
advanceRate: number;
|
|
140
142
|
queries: mongoose.Types.DocumentArray<{
|
|
141
143
|
filter: string;
|
|
142
|
-
conjunction: string;
|
|
143
144
|
field: string;
|
|
145
|
+
conjunction: string;
|
|
144
146
|
filterValue: any;
|
|
145
147
|
}>;
|
|
146
|
-
inventoryName: string;
|
|
147
|
-
valid: boolean;
|
|
148
148
|
}>;
|
|
149
149
|
__v?: number;
|
|
150
150
|
options?: {
|
|
@@ -154,30 +154,30 @@ export declare const InventoryAvailabilityScheme: mongoose.Schema<any, mongoose.
|
|
|
154
154
|
createdAt: NativeDate;
|
|
155
155
|
updatedAt: NativeDate;
|
|
156
156
|
} & {
|
|
157
|
-
bbcDateId: mongoose.Types.ObjectId;
|
|
158
157
|
borrowerId: mongoose.Types.ObjectId;
|
|
159
158
|
status: string;
|
|
159
|
+
bbcDateId: mongoose.Types.ObjectId;
|
|
160
160
|
summary: mongoose.Types.DocumentArray<{
|
|
161
161
|
order: number;
|
|
162
|
-
advanceRate: number;
|
|
163
|
-
availability: number;
|
|
164
162
|
inventoryName: string;
|
|
165
|
-
isGroup: boolean;
|
|
166
163
|
totalQty: number;
|
|
167
164
|
totalValue: number;
|
|
165
|
+
advanceRate: number;
|
|
166
|
+
availability: number;
|
|
167
|
+
isGroup: boolean;
|
|
168
168
|
}>;
|
|
169
169
|
useManualInputs: boolean;
|
|
170
170
|
filters: mongoose.Types.DocumentArray<{
|
|
171
171
|
active: boolean;
|
|
172
|
+
valid: boolean;
|
|
173
|
+
inventoryName: string;
|
|
172
174
|
advanceRate: number;
|
|
173
175
|
queries: mongoose.Types.DocumentArray<{
|
|
174
176
|
filter: string;
|
|
175
|
-
conjunction: string;
|
|
176
177
|
field: string;
|
|
178
|
+
conjunction: string;
|
|
177
179
|
filterValue: any;
|
|
178
180
|
}>;
|
|
179
|
-
inventoryName: string;
|
|
180
|
-
valid: boolean;
|
|
181
181
|
}>;
|
|
182
182
|
__v?: number;
|
|
183
183
|
options?: {
|
|
@@ -55,9 +55,9 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
55
55
|
matched: boolean;
|
|
56
56
|
groups: string[];
|
|
57
57
|
__v?: number;
|
|
58
|
+
inventoryName?: string;
|
|
58
59
|
advanceRate?: number;
|
|
59
60
|
availability?: number;
|
|
60
|
-
inventoryName?: string;
|
|
61
61
|
expireDays?: number;
|
|
62
62
|
skuDays?: number;
|
|
63
63
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
@@ -71,9 +71,9 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
71
71
|
matched: boolean;
|
|
72
72
|
groups: string[];
|
|
73
73
|
__v?: number;
|
|
74
|
+
inventoryName?: string;
|
|
74
75
|
advanceRate?: number;
|
|
75
76
|
availability?: number;
|
|
76
|
-
inventoryName?: string;
|
|
77
77
|
expireDays?: number;
|
|
78
78
|
skuDays?: number;
|
|
79
79
|
}>> & mongoose.FlatRecord<{
|
|
@@ -87,9 +87,9 @@ export declare const InventoryAvailabilityItemScheme: mongoose.Schema<any, mongo
|
|
|
87
87
|
matched: boolean;
|
|
88
88
|
groups: string[];
|
|
89
89
|
__v?: number;
|
|
90
|
+
inventoryName?: string;
|
|
90
91
|
advanceRate?: number;
|
|
91
92
|
availability?: number;
|
|
92
|
-
inventoryName?: string;
|
|
93
93
|
expireDays?: number;
|
|
94
94
|
skuDays?: number;
|
|
95
95
|
}> & {
|
|
@@ -71,68 +71,68 @@ export declare const InventoryItemSchema: mongoose.Schema<any, mongoose.Model<an
|
|
|
71
71
|
createdAt: NativeDate;
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
} & {
|
|
74
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
75
74
|
order: number;
|
|
76
75
|
value: number;
|
|
76
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
77
77
|
skuDate: Date;
|
|
78
78
|
category: string;
|
|
79
79
|
sku: string;
|
|
80
80
|
qty: number;
|
|
81
81
|
__v?: number;
|
|
82
|
-
location?: string;
|
|
83
|
-
lotNumber?: string;
|
|
84
|
-
expiryDate?: Date;
|
|
85
82
|
unitCost?: number;
|
|
83
|
+
expiryDate?: Date;
|
|
84
|
+
location?: string;
|
|
86
85
|
skuDescription1?: string;
|
|
87
86
|
skuDescription2?: string;
|
|
88
87
|
skuDescription3?: string;
|
|
89
88
|
detail1?: string;
|
|
90
89
|
detail2?: string;
|
|
91
90
|
detail3?: string;
|
|
91
|
+
lotNumber?: string;
|
|
92
92
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
93
93
|
createdAt: NativeDate;
|
|
94
94
|
updatedAt: NativeDate;
|
|
95
95
|
} & {
|
|
96
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
97
96
|
order: number;
|
|
98
97
|
value: number;
|
|
98
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
99
99
|
skuDate: Date;
|
|
100
100
|
category: string;
|
|
101
101
|
sku: string;
|
|
102
102
|
qty: number;
|
|
103
103
|
__v?: number;
|
|
104
|
-
location?: string;
|
|
105
|
-
lotNumber?: string;
|
|
106
|
-
expiryDate?: Date;
|
|
107
104
|
unitCost?: number;
|
|
105
|
+
expiryDate?: Date;
|
|
106
|
+
location?: string;
|
|
108
107
|
skuDescription1?: string;
|
|
109
108
|
skuDescription2?: string;
|
|
110
109
|
skuDescription3?: string;
|
|
111
110
|
detail1?: string;
|
|
112
111
|
detail2?: string;
|
|
113
112
|
detail3?: string;
|
|
113
|
+
lotNumber?: string;
|
|
114
114
|
}>> & mongoose.FlatRecord<{
|
|
115
115
|
createdAt: NativeDate;
|
|
116
116
|
updatedAt: NativeDate;
|
|
117
117
|
} & {
|
|
118
|
-
bbcSheetId: mongoose.Types.ObjectId;
|
|
119
118
|
order: number;
|
|
120
119
|
value: number;
|
|
120
|
+
bbcSheetId: mongoose.Types.ObjectId;
|
|
121
121
|
skuDate: Date;
|
|
122
122
|
category: string;
|
|
123
123
|
sku: string;
|
|
124
124
|
qty: number;
|
|
125
125
|
__v?: number;
|
|
126
|
-
location?: string;
|
|
127
|
-
lotNumber?: string;
|
|
128
|
-
expiryDate?: Date;
|
|
129
126
|
unitCost?: number;
|
|
127
|
+
expiryDate?: Date;
|
|
128
|
+
location?: string;
|
|
130
129
|
skuDescription1?: string;
|
|
131
130
|
skuDescription2?: string;
|
|
132
131
|
skuDescription3?: string;
|
|
133
132
|
detail1?: string;
|
|
134
133
|
detail2?: string;
|
|
135
134
|
detail3?: string;
|
|
135
|
+
lotNumber?: string;
|
|
136
136
|
}> & {
|
|
137
137
|
_id: mongoose.Types.ObjectId;
|
|
138
138
|
}>;
|
|
@@ -46,43 +46,43 @@ export declare const InventoryManualEntrySchema: mongoose.Schema<any, mongoose.M
|
|
|
46
46
|
createdAt: NativeDate;
|
|
47
47
|
updatedAt: NativeDate;
|
|
48
48
|
} & {
|
|
49
|
-
bbcDateId: mongoose.Types.ObjectId;
|
|
50
49
|
items: mongoose.Types.DocumentArray<{
|
|
51
|
-
advanceRate: number;
|
|
52
|
-
availability: number;
|
|
53
50
|
inventoryName: string;
|
|
54
51
|
totalQty: number;
|
|
55
52
|
totalValue: number;
|
|
56
53
|
ineligible: number;
|
|
54
|
+
advanceRate: number;
|
|
55
|
+
availability: number;
|
|
57
56
|
}>;
|
|
57
|
+
bbcDateId: mongoose.Types.ObjectId;
|
|
58
58
|
__v?: number;
|
|
59
59
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
60
60
|
createdAt: NativeDate;
|
|
61
61
|
updatedAt: NativeDate;
|
|
62
62
|
} & {
|
|
63
|
-
bbcDateId: mongoose.Types.ObjectId;
|
|
64
63
|
items: mongoose.Types.DocumentArray<{
|
|
65
|
-
advanceRate: number;
|
|
66
|
-
availability: number;
|
|
67
64
|
inventoryName: string;
|
|
68
65
|
totalQty: number;
|
|
69
66
|
totalValue: number;
|
|
70
67
|
ineligible: number;
|
|
68
|
+
advanceRate: number;
|
|
69
|
+
availability: number;
|
|
71
70
|
}>;
|
|
71
|
+
bbcDateId: mongoose.Types.ObjectId;
|
|
72
72
|
__v?: number;
|
|
73
73
|
}>> & mongoose.FlatRecord<{
|
|
74
74
|
createdAt: NativeDate;
|
|
75
75
|
updatedAt: NativeDate;
|
|
76
76
|
} & {
|
|
77
|
-
bbcDateId: mongoose.Types.ObjectId;
|
|
78
77
|
items: mongoose.Types.DocumentArray<{
|
|
79
|
-
advanceRate: number;
|
|
80
|
-
availability: number;
|
|
81
78
|
inventoryName: string;
|
|
82
79
|
totalQty: number;
|
|
83
80
|
totalValue: number;
|
|
84
81
|
ineligible: number;
|
|
82
|
+
advanceRate: number;
|
|
83
|
+
availability: number;
|
|
85
84
|
}>;
|
|
85
|
+
bbcDateId: mongoose.Types.ObjectId;
|
|
86
86
|
__v?: number;
|
|
87
87
|
}> & {
|
|
88
88
|
_id: mongoose.Types.ObjectId;
|
|
@@ -47,8 +47,8 @@ export declare const InventorySeasonalEntrySchema: mongoose.Schema<any, mongoose
|
|
|
47
47
|
borrowerId: mongoose.Types.ObjectId;
|
|
48
48
|
items: mongoose.Types.DocumentArray<{
|
|
49
49
|
end: Date;
|
|
50
|
-
advanceRate: number;
|
|
51
50
|
sku: string;
|
|
51
|
+
advanceRate: number;
|
|
52
52
|
start: Date;
|
|
53
53
|
}>;
|
|
54
54
|
__v?: number;
|
|
@@ -59,8 +59,8 @@ export declare const InventorySeasonalEntrySchema: mongoose.Schema<any, mongoose
|
|
|
59
59
|
borrowerId: mongoose.Types.ObjectId;
|
|
60
60
|
items: mongoose.Types.DocumentArray<{
|
|
61
61
|
end: Date;
|
|
62
|
-
advanceRate: number;
|
|
63
62
|
sku: string;
|
|
63
|
+
advanceRate: number;
|
|
64
64
|
start: Date;
|
|
65
65
|
}>;
|
|
66
66
|
__v?: number;
|
|
@@ -71,8 +71,8 @@ export declare const InventorySeasonalEntrySchema: mongoose.Schema<any, mongoose
|
|
|
71
71
|
borrowerId: mongoose.Types.ObjectId;
|
|
72
72
|
items: mongoose.Types.DocumentArray<{
|
|
73
73
|
end: Date;
|
|
74
|
-
advanceRate: number;
|
|
75
74
|
sku: string;
|
|
75
|
+
advanceRate: number;
|
|
76
76
|
start: Date;
|
|
77
77
|
}>;
|
|
78
78
|
__v?: number;
|
|
@@ -49,12 +49,12 @@ export declare const LoanBrokerSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
49
49
|
createdAt: NativeDate;
|
|
50
50
|
updatedAt: NativeDate;
|
|
51
51
|
} & {
|
|
52
|
-
active: boolean;
|
|
53
52
|
name: string;
|
|
54
53
|
order: number;
|
|
54
|
+
active: boolean;
|
|
55
55
|
emails: mongoose.Types.DocumentArray<{
|
|
56
|
-
title: string;
|
|
57
56
|
email: string;
|
|
57
|
+
title: string;
|
|
58
58
|
isActive: boolean;
|
|
59
59
|
}>;
|
|
60
60
|
__v?: number;
|
|
@@ -62,12 +62,12 @@ export declare const LoanBrokerSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
62
62
|
createdAt: NativeDate;
|
|
63
63
|
updatedAt: NativeDate;
|
|
64
64
|
} & {
|
|
65
|
-
active: boolean;
|
|
66
65
|
name: string;
|
|
67
66
|
order: number;
|
|
67
|
+
active: boolean;
|
|
68
68
|
emails: mongoose.Types.DocumentArray<{
|
|
69
|
-
title: string;
|
|
70
69
|
email: string;
|
|
70
|
+
title: string;
|
|
71
71
|
isActive: boolean;
|
|
72
72
|
}>;
|
|
73
73
|
__v?: number;
|
|
@@ -75,12 +75,12 @@ export declare const LoanBrokerSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
75
75
|
createdAt: NativeDate;
|
|
76
76
|
updatedAt: NativeDate;
|
|
77
77
|
} & {
|
|
78
|
-
active: boolean;
|
|
79
78
|
name: string;
|
|
80
79
|
order: number;
|
|
80
|
+
active: boolean;
|
|
81
81
|
emails: mongoose.Types.DocumentArray<{
|
|
82
|
-
title: string;
|
|
83
82
|
email: string;
|
|
83
|
+
title: string;
|
|
84
84
|
isActive: boolean;
|
|
85
85
|
}>;
|
|
86
86
|
__v?: number;
|
|
@@ -74,13 +74,13 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
74
74
|
createdAt: NativeDate;
|
|
75
75
|
updatedAt: NativeDate;
|
|
76
76
|
} & {
|
|
77
|
-
|
|
77
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
78
78
|
name: string;
|
|
79
79
|
order: number;
|
|
80
|
-
|
|
80
|
+
active: boolean;
|
|
81
81
|
code: string;
|
|
82
|
-
frequency: string;
|
|
83
82
|
productId: mongoose.Types.ObjectId;
|
|
83
|
+
frequency: string;
|
|
84
84
|
PLCode: string;
|
|
85
85
|
percent: number;
|
|
86
86
|
minimumAmount: number;
|
|
@@ -88,20 +88,20 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
88
88
|
calculationBasis: string;
|
|
89
89
|
chargeType: string;
|
|
90
90
|
includeInYield: boolean;
|
|
91
|
-
deletedAt?: Date;
|
|
92
91
|
__v?: number;
|
|
92
|
+
deletedAt?: Date;
|
|
93
93
|
paymentOrder?: number;
|
|
94
94
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
95
95
|
createdAt: NativeDate;
|
|
96
96
|
updatedAt: NativeDate;
|
|
97
97
|
} & {
|
|
98
|
-
|
|
98
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
99
99
|
name: string;
|
|
100
100
|
order: number;
|
|
101
|
-
|
|
101
|
+
active: boolean;
|
|
102
102
|
code: string;
|
|
103
|
-
frequency: string;
|
|
104
103
|
productId: mongoose.Types.ObjectId;
|
|
104
|
+
frequency: string;
|
|
105
105
|
PLCode: string;
|
|
106
106
|
percent: number;
|
|
107
107
|
minimumAmount: number;
|
|
@@ -109,20 +109,20 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
109
109
|
calculationBasis: string;
|
|
110
110
|
chargeType: string;
|
|
111
111
|
includeInYield: boolean;
|
|
112
|
-
deletedAt?: Date;
|
|
113
112
|
__v?: number;
|
|
113
|
+
deletedAt?: Date;
|
|
114
114
|
paymentOrder?: number;
|
|
115
115
|
}>> & mongoose.FlatRecord<{
|
|
116
116
|
createdAt: NativeDate;
|
|
117
117
|
updatedAt: NativeDate;
|
|
118
118
|
} & {
|
|
119
|
-
|
|
119
|
+
borrowerId: mongoose.Types.ObjectId;
|
|
120
120
|
name: string;
|
|
121
121
|
order: number;
|
|
122
|
-
|
|
122
|
+
active: boolean;
|
|
123
123
|
code: string;
|
|
124
|
-
frequency: string;
|
|
125
124
|
productId: mongoose.Types.ObjectId;
|
|
125
|
+
frequency: string;
|
|
126
126
|
PLCode: string;
|
|
127
127
|
percent: number;
|
|
128
128
|
minimumAmount: number;
|
|
@@ -130,8 +130,8 @@ export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
130
130
|
calculationBasis: string;
|
|
131
131
|
chargeType: string;
|
|
132
132
|
includeInYield: boolean;
|
|
133
|
-
deletedAt?: Date;
|
|
134
133
|
__v?: number;
|
|
134
|
+
deletedAt?: Date;
|
|
135
135
|
paymentOrder?: number;
|
|
136
136
|
}> & {
|
|
137
137
|
_id: mongoose.Types.ObjectId;
|
|
@@ -70,8 +70,8 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
70
70
|
updatedAt: NativeDate;
|
|
71
71
|
} & {
|
|
72
72
|
date: Date;
|
|
73
|
-
amount: number;
|
|
74
73
|
productId: mongoose.Types.ObjectId;
|
|
74
|
+
amount: number;
|
|
75
75
|
paymentOrder: string[];
|
|
76
76
|
paid: mongoose.Types.DocumentArray<{
|
|
77
77
|
amount?: number;
|
|
@@ -88,8 +88,8 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
88
88
|
updatedAt: NativeDate;
|
|
89
89
|
} & {
|
|
90
90
|
date: Date;
|
|
91
|
-
amount: number;
|
|
92
91
|
productId: mongoose.Types.ObjectId;
|
|
92
|
+
amount: number;
|
|
93
93
|
paymentOrder: string[];
|
|
94
94
|
paid: mongoose.Types.DocumentArray<{
|
|
95
95
|
amount?: number;
|
|
@@ -106,8 +106,8 @@ export declare const LoanPaymentSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
106
106
|
updatedAt: NativeDate;
|
|
107
107
|
} & {
|
|
108
108
|
date: Date;
|
|
109
|
-
amount: number;
|
|
110
109
|
productId: mongoose.Types.ObjectId;
|
|
110
|
+
amount: number;
|
|
111
111
|
paymentOrder: string[];
|
|
112
112
|
paid: mongoose.Types.DocumentArray<{
|
|
113
113
|
amount?: number;
|