Skip to content

Commit 00b3f23

Browse files
committed
Pipeline
1 parent 47842ec commit 00b3f23

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

apps/dashboard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
## Dashboard
1+
## Dashboard

packages/jobs/src/utils/transform.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ test("transformTransaction should correctly transform transaction data", () => {
4343
is_fulfilled: null,
4444
amount_text: null,
4545
calculated_vat: null,
46+
tax_rate: null,
47+
tax_type: null,
4648
};
4749

4850
const teamId = "team123";
@@ -115,6 +117,8 @@ test("transformTransaction should handle null values correctly", () => {
115117
is_fulfilled: null,
116118
amount_text: null,
117119
calculated_vat: null,
120+
tax_rate: null,
121+
tax_type: null,
118122
};
119123

120124
const teamId = "team456";

packages/jobs/src/utils/transform.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type Transaction = {
2222
status: "posted";
2323
notified?: boolean;
2424
counterparty_name: string | null;
25+
tax_rate: number | null;
26+
tax_type: string | null;
2527
};
2628

2729
export function transformTransaction({
@@ -43,6 +45,8 @@ export function transformTransaction({
4345
balance: transaction.balance,
4446
team_id: teamId,
4547
counterparty_name: transaction.counterparty_name,
48+
tax_rate: transaction.tax_rate,
49+
tax_type: transaction.tax_type,
4650
// We only support posted transactions for now
4751
status: "posted",
4852
// If the transactions are being synced manually, we don't want to notify

0 commit comments

Comments
 (0)