Skip to content

Conversation

@SandipBajracharya
Copy link
Collaborator

Summary

  • When syncing invoices, ClassRef was always included in the SalesItemLineDetail payload, even when undefined. This caused QuickBooks to clear the item's default class to blank.
  • Changed to conditional spread (...(itemRef.classRef && { ClassRef: itemRef.classRef })) so ClassRef is only included when we have an actual value. This allows QB to apply its configured default class behavior on items.

🤖 Generated with Claude Code

aschwartz91 and others added 3 commits February 5, 2026 17:48
…sRef when unset

When syncing invoices, we were always including ClassRef in the SalesItemLineDetail
payload, even when undefined. This caused QB to clear the item's default class.
Now we only include ClassRef when we have an actual value to send, allowing QB
to apply its configured default class behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When items are created or found by name in QB (rather than by mapped ID),
we had the qbItem with its ClassRef but weren't passing it through to the
invoice line item payload. QB's API does not auto-apply an item's default
class to invoice line items, so we must explicitly forward it.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@linear
Copy link

linear bot commented Feb 9, 2026

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
quickbooks-sync Ready Ready Preview, Comment Feb 9, 2026 8:04am

Request Review

@SandipBajracharya SandipBajracharya merged commit 06aa1c6 into master Feb 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants