Skip to content

Commit

Permalink
Print vat_amount_cents
Browse files Browse the repository at this point in the history
  • Loading branch information
agix committed Nov 18, 2019
1 parent 086a8d8 commit acddba7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist.tar.gz
.env
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"axios": "^0.18.0",
"body-parser": "^1.18.2",
"cors": "^2.8.4",
"dotenv": "^8.2.0",
"express": "^4.16.3",
"http": "^0.0.0",
"joi": "^13.3.0",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {} from 'dotenv/config';
import express from 'express';
import http from 'http';
import cors from 'cors';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function cleanTransactions(transactions, membersList = []) {
({label} = transaction)
}
}
return {date: new Date(transaction.settled_at), label, amount: transaction.amount_cents, type: transaction.side};
return {date: new Date(transaction.settled_at), label, amount: transaction.amount_cents, type: transaction.side, vat_amount: transaction.vat_amount_cents};
})
}

Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,10 @@ doctrine@^2.1.0:
dependencies:
esutils "^2.0.2"

dotenv@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"

[email protected]:
version "1.1.1"
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
Expand Down

0 comments on commit acddba7

Please sign in to comment.