Commit 1b4cf22
feat(quickbooks): add txn_date input to create-invoice action (#432)
## Summary
Adds support for setting the invoice transaction date (`TxnDate`) when
creating QuickBooks invoices.
## Problem
The `create-invoice` action currently doesn't allow setting the invoice
date (`TxnDate`). QuickBooks defaults to
today's date, which is incorrect when:
- Billing for past service periods (e.g., creating August invoices in
September)
- Invoice dates need to match billing cycles
The `txn_date` field is already mapped in the **output** (via
`toInvoice`), but cannot be set as **input**.
## Changes
- `schema.zod.ts`: Added `txn_date: z.string().optional()` to
`createInvoiceSchema`
- `mappers/to-invoice.ts`: Added mapping `txn_date` → `TxnDate` in
`toQuickBooksInvoice()`
- `actions/create-invoice.md`: Updated documentation
## Backward Compatibility
Fully backward compatible - `txn_date` is optional, existing
integrations unaffected.
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Khaliq <khaliq@nango.dev>1 parent 6f41087 commit 1b4cf22
File tree
13 files changed
+47
-14
lines changed- integrations
- .nango
- quickbooks
- .nango
- actions
- mappers
- internal
13 files changed
+47
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11883 | 11883 | | |
11884 | 11884 | | |
11885 | 11885 | | |
11886 | | - | |
| 11886 | + | |
11887 | 11887 | | |
11888 | 11888 | | |
11889 | 11889 | | |
| |||
12059 | 12059 | | |
12060 | 12060 | | |
12061 | 12061 | | |
12062 | | - | |
| 12062 | + | |
12063 | 12063 | | |
12064 | 12064 | | |
12065 | 12065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49447 | 49447 | | |
49448 | 49448 | | |
49449 | 49449 | | |
| 49450 | + | |
| 49451 | + | |
| 49452 | + | |
49450 | 49453 | | |
49451 | 49454 | | |
49452 | 49455 | | |
| |||
52104 | 52107 | | |
52105 | 52108 | | |
52106 | 52109 | | |
| 52110 | + | |
| 52111 | + | |
| 52112 | + | |
52107 | 52113 | | |
52108 | 52114 | | |
52109 | 52115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10468 | 10468 | | |
10469 | 10469 | | |
10470 | 10470 | | |
| 10471 | + | |
10471 | 10472 | | |
10472 | 10473 | | |
10473 | 10474 | | |
| |||
10938 | 10939 | | |
10939 | 10940 | | |
10940 | 10941 | | |
| 10942 | + | |
10941 | 10943 | | |
10942 | 10944 | | |
10943 | 10945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
1739 | 1742 | | |
1740 | 1743 | | |
1741 | 1744 | | |
| |||
4393 | 4396 | | |
4394 | 4397 | | |
4395 | 4398 | | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
4396 | 4402 | | |
4397 | 4403 | | |
4398 | 4404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| |||
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
| 863 | + | |
862 | 864 | | |
863 | 865 | | |
864 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments