Skip to content

Commit

Permalink
fix(one-zero): transaction identifier (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerroditi authored Sep 8, 2024
1 parent 199f10b commit 4315476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scrapers/one-zero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export default class OneZeroScraper extends BaseScraper<ScraperSpecificCredentia
const hasInstallments = movement.transaction?.enrichment?.recurrences?.some((x) => x.isRecurrent);
const modifier = movement.creditDebit === 'DEBIT' ? -1 : 1;
return ({
identifier: movement.movementId,
date: movement.valueDate,
chargedAmount: (+movement.movementAmount) * modifier,
chargedCurrency: movement.movementCurrency,
Expand Down

0 comments on commit 4315476

Please sign in to comment.