Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gchauhan-aot committed Jan 16, 2025
1 parent 5570739 commit 70b9d7b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,10 @@ export class PaymentService {
totalTransactionAmount,
createTransactionDto.transactionTypeId,
)
)
{
this.logger.error(`Reaceived amount id ${totalTransactionAmount}. calculated amount is ${totalTransactionAmount}`);
) {
this.logger.error(
`Transaction amount mismatch. Received amount is ${totalTransactionAmount}. Calculated amount is ${totalTransactionAmount}`,
);
throw new BadRequestException('Transaction amount mismatch.');
}
return totalTransactionAmount;
Expand Down Expand Up @@ -877,7 +878,8 @@ export class PaymentService {
permitPaymentHistory.length > 0
? calculatePermitAmount(permitPaymentHistory)
: undefined;
if (application.permitStatus === ApplicationStatus.VOIDED) return -oldAmount;
if (application.permitStatus === ApplicationStatus.VOIDED)
return -oldAmount;
const fee = permitFee(application, isNoFee, oldAmount);
return fee;
}
Expand Down

0 comments on commit 70b9d7b

Please sign in to comment.