-
Notifications
You must be signed in to change notification settings - Fork 17
feat(quickbooks): add txn_date input to create-invoice action #432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 My Senior Dev — Analysis Complete👤 For @bolg55📁 Expert in View your contributor analytics → 📊 13 files reviewed • 2 high risk • 2 need attention 🚨 High Risk:
🚀 Open Interactive Review →The full interface unlocks features not available in GitHub:
💬 Chat here: 📖 View all 12 personas & slash commandsYou can interact with me by mentioning In PR comments or on any line of code:
Slash commands:
AI Personas (mention to get their perspective):
For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews. |
The UpdateInvoice zod schema was missing the txn_date field, causing a type error in toQuickBooksInvoice which accepts CreateInvoice | UpdateInvoice. Also fixes the TxnDate mapping in to-invoice.ts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@khaliqgant I've made the requested updates from our Slack messages. Thanks |
khaliqgant
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good. You just need to bump the version of the action https://github.com/NangoHQ/integration-templates/blob/main/integrations/quickbooks/actions/create-invoice.ts#L22 so this version can be upgraded to and should be all set!
|
@khaliqgant I've updated the version now, as requested for the create and update invoices actions. |
|
@khaliqgant Thanks for the approval! Looks like the CI workflows are still waiting for approval to run — would you mind approving those as well so the checks can complete? |
|
@khaliqgant Thanks - are you able to merge this 🙏 |
Summary
Adds support for setting the invoice transaction date (
TxnDate) when creating QuickBooks invoices.Problem
The
create-invoiceaction currently doesn't allow setting the invoice date (TxnDate). QuickBooks defaults totoday's date, which is incorrect when:
The
txn_datefield is already mapped in the output (viatoInvoice), but cannot be set as input.Changes
schema.zod.ts: Addedtxn_date: z.string().optional()tocreateInvoiceSchemamappers/to-invoice.ts: Added mappingtxn_date→TxnDateintoQuickBooksInvoice()actions/create-invoice.md: Updated documentationBackward Compatibility
Fully backward compatible -
txn_dateis optional, existing integrations unaffected.