New invoices columns tax_amount and paid_on, filled in by the invoice
sync. An invoice is paid in full on the later of its date and the
dates of the payments and credit memos applied to it (local payments
first; QuickBooks only for ones not synced yet and credit memos), so
reports such as the monthly sales commission don't have to read
invoices from QuickBooks. A full sync fills them in for older
invoices; it now syncs payments before invoices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Refund page on the customer: the canceled order's estimate fills in
the parts the 30% restocking fee is worked out on. Refunding makes the
fee invoice, pays it from the customer's credit, records the rest as a
Check (company check) or Expense (card refund on the terminal) with the
category Accounts Receivable, applies the credit to it so the balance
comes back to $0.00, and optionally marks the estimate Rejected,
cancels its work orders with the reason as a note and emails the
customer. Each refund has a page with a PDF of it.
New permission: Issue refunds. New settings under Billing » Refunds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
:view_qbo_invoice_contextual, { invoice_id:, customer_id:, doc_number: }
in the invoice page's top-right actions, like the estimate page's hook
(used by redmine_qbo_labels' Print label).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Issue PDF: show the issue's estimate number and invoice number(s)
- Create issues from estimate: optional parent task. The issues are created as
its subtasks, take its customer, and start from its project, vehicle and
custom field values (subtask_field_copier's rules when installed)
- Issue page: shortcut to create the estimate's issues as subtasks of the issue
- Create issues page: editable start and due dates, pre-filled from the
appointment or the parent task
- Always show plugins' fields (e.g. the vehicle) on the Create issues page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking Save, Save and send or Save draft shows a spinner in the action bar and locks the buttons until the page reloads, so a second click can't save or send twice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Estimates and invoices take a discount, as a percent of the subtotal or an
amount, saved as QuickBooks' discount line and taken off before sales tax.
Duplicated estimates and invoices made from an estimate keep it. The box is
hidden when discounts are off in QuickBooks.
- A paid invoice can be unlocked for editing after a confirmation. The
payments stay linked, and the total can't go below what's been paid.
Unlocking needs the new "Edit partially paid invoices" or "Edit paid
invoices" permission, checked again when saving.
- Saved payments can be edited: date, method, reference, memo, amount and the
invoices they pay. Each invoice keeps its amount unless the amount or the
invoices change. Payments that also apply credit memos stay read-only.
- Locked estimates and invoices are readable again (disabled boxes had faint
or invisible text, especially in Safari).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an estimate didn't have the company's sales person field, the plugin fell back to
any field named like "Sales Rep", e.g. a retired "Sales Rep old" dropdown, which
QuickBooks returns as its option number. Invoices made from those estimates got "4"
as their sales person. Only the company's field is read now; an estimate without it
has no sales person, so the invoice gets the user who creates it. Matching by name is
left for when QuickBooks' settings can't be read, and never picks a hidden field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A draft is kept in Redmine only, however incomplete, so nothing is in QuickBooks
until it's saved from the editor. QuickBooks can't apply a deposit to an invoice
that's still being written, which made it read-only. Saving to QuickBooks deletes
the draft.
Drafts are listed on the customer's page, on a Drafts page linked from Customers,
and on a new invoice or estimate for a customer who already has one. Anyone with
Write invoices (or Write estimates) can continue or delete invoice (or estimate)
drafts. Adds the qbo_drafts table (migration 052).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The token expiry came back as "never synced" text, which the page treated as a
time, so it failed. It's now empty, shown as N/A.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QuickBooks doesn't tell apps which custom fields are inactive, and a field stays on
its old estimates after it's turned off, so an inactive "Sales Rep old" kept showing
and was filled in with the sales person. The billing settings now list the fields
found, with a box to hide each; hidden fields are left out of the editor, the sales
person and other plugins' field lookups.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QuickBooks keeps listing the legacy sales form fields (DefinitionIds 1-3) in the
preferences after a company moves to its newer custom fields, often renamed or inactive
(e.g. "Sales Rep old"). Once estimates show any newer field, only those are used.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only for users with View customers, who can open the customer page; others see
the name as plain text. CSV and PDF exports are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The time entry Billed column sorted by time_entries.name, which doesn't exist, so
sorting or grouping by it failed. The issue list's Billed column is removed: issues
have no billed value, so showing or sorting it always failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The history showed the customer and estimate as id numbers. It now shows their names,
for existing entries too. When the QuickBooks webhook attaches an invoice to an issue,
the issue's history gets "Invoice 1042 added", linking to the invoice PDF.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each type appears only on the overall activity page, and only for users who may see it:
estimates need View customers or Write estimates, invoices View customers or Write invoices,
and payments View or Receive payments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On dark pages the confirmation is dark instead of the browser's bright box; without redmine_dark_mode
it's the browser's box as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The grid lines and labels read --qbo-chart-grid and --qbo-chart-text (Chart.js' own colours when
unset), and recolour on redmine_dark_mode's redmine:color-scheme event, so the charts get lighter
grid lines in dark mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new invoice lists the customer's open issues (any project, those the user can see) in a warning under
the title, so work orders aren't left open once the work is billed. It's there when the page opens with a
customer (from the customer page or an estimate) and follows the customer when it's changed: customer_info
returns open_issues_html for invoices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The title is a trail back to the customer list, like Redmine's pages, instead of "Customer #id - name"
- The action links sit on their own line under the title (qbo-under-title, also used by
redmine_qbo_vehicles), so a long name and the many actions don't crowd each other
- Open in QuickBooks joins the action links, as on the payments, invoice and estimate pages, in place of
the name linking to QuickBooks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The Customers page shows all customers without a search: a Redmine list with name, phone, mobile,
issue count and last update, sortable by column, with Redmine's pagination and per-page choices
- Search works as before (best matches first, a single match opens the customer); clicking a column
sorts the matches by it instead, and Clear goes back to everyone
- New Customer and Sync move to the page's action links
- will_paginate removed from the Gemfile and init.rb; redmine_qbo_vehicles 2026.11.3 no longer needs it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed and archived projects aren't listed. A saved project that has since closed is dropped from the
filter (and from "Opens with"), so the report never filters by a project the picker can't show.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Projects picker (project tree, visible projects only) limits issues' estimated time and spent time
to the chosen projects, in the totals, charts, last-year lines and months; none picked is every project
- Estimates, invoices and payments have no project in QuickBooks, so they stay whole-business; the page
says so while filtered (the CPI's invoiced hours included)
- "Remember these projects" saves the choice in the user's Redmine preferences; the report opens with it
when the address has no projects, and saving none goes back to every project
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The estimate lists (customer page, and redmine_qbo_vehicles' vehicle page) show the QuickBooks status
badge (Pending, Accepted, Closed, Converted, Rejected) after the date. It's the status the estimate
sync already caches, kept current by the webhook. The badge styles are shared with the estimate
page's header (qbo_estimates/_status_styles).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>