Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
added another place to round in 2 decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Jan 14, 2025
1 parent 69da681 commit 1c8e24f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app-pluggyai/app-pluggyai.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ app.post(
}

newTrans.remittanceInformationUnstructured = trans.descriptionRaw;
const amountInCurrency = trans.amountInAccountCurrency ?? trans.amount;
let amountInCurrency = trans.amountInAccountCurrency ?? trans.amount;
amountInCurrency = Math.round(amountInCurrency * 100) / 100;

newTrans.transactionAmount = {
amount:
account.type === 'BANK' ? amountInCurrency : -amountInCurrency,
Expand Down

0 comments on commit 1c8e24f

Please sign in to comment.