gemcap-be-common 1.5.13 → 1.5.15
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/package.json
CHANGED
|
@@ -293,7 +293,7 @@ class LoanStatementService {
|
|
|
293
293
|
return fee;
|
|
294
294
|
};
|
|
295
295
|
fee = checkMinAmount(fee);
|
|
296
|
-
if (charge.chargeType === loan_charge_type_enum_1.ELoanChargeType.ADMIN_FEE) {
|
|
296
|
+
if (loan_charge_type_enum_1.ELoanChargeType[charge.chargeType] === loan_charge_type_enum_1.ELoanChargeType.ADMIN_FEE) {
|
|
297
297
|
console.debug({ charge, statementDate, fee, isAfter: (0, dayjs_1.default)(statementDate).isSameOrAfter((0, dayjs_1.default)(charge.applyFrom)) });
|
|
298
298
|
}
|
|
299
299
|
if (fee !== null && fee > 0) {
|
|
@@ -341,7 +341,7 @@ export class LoanStatementService {
|
|
|
341
341
|
|
|
342
342
|
fee = checkMinAmount(fee);
|
|
343
343
|
|
|
344
|
-
if (charge.chargeType === ELoanChargeType.ADMIN_FEE) {
|
|
344
|
+
if (ELoanChargeType[charge.chargeType] === ELoanChargeType.ADMIN_FEE) {
|
|
345
345
|
console.debug({ charge, statementDate, fee, isAfter: dayjs(statementDate).isSameOrAfter(dayjs(charge.applyFrom)) });
|
|
346
346
|
}
|
|
347
347
|
|