Claude 39f6b64049 Polish: permissions, billed-line locking, sync and billing fixes
Permissions
- Item catalog and accounts pages, and their syncs, are admin-only (they
  push to / pull from QuickBooks); shown in the Administration layout
- Item autocomplete is allowed with Add or Edit line items
- Permissions now map to real actions (they pointed at a non-existent
  line_items controller); line_items_attributes is only accepted from
  users with a line item permission
- Line item changes are checked on the server: adding, editing and
  deleting each need their permission, and billed lines (already on a
  QBO estimate) can't be changed or removed

Bugs
- Billing on close now runs from an Issue after_commit, so closing via
  bulk edit or the context menu bills too (replaces the save hook);
  the job takes an issue id
- Full sync runs Accounts before Items, and item sync no longer fails
  when an item has no income account or its account hasn't synced
- New QBO items default to Non-inventory in the default income account
  (the account ref was being assigned to the item type)
- Choosing a blank account on an item no longer raises; set_default
  handles no selection
- Item autocomplete escapes item names, SKUs and descriptions (they were
  inserted into the page as HTML)
- Items list showed "translation missing" for Yes/No

Polish
- Fractional quantities allowed (0.5 hrs, 2.5 qts)
- Billed lines show a Billed badge and are read-only; remove button only
  where allowed; add button only with Add line items
- Removed dead code (Item belongs_to :issue, Item#ref, no-op in new,
  swallowed errors); validation failures return 422

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-28 22:37:41 -04:00
2026-03-17 12:25:58 -04:00
2026-03-05 08:40:23 -05:00
2026-03-07 22:01:11 -05:00
2026-03-19 09:00:39 -04:00

Redmine QuickBooks Line Items

A plugin for Redmine that extends the functionality of the Redmine QuickBooks Online plugin.

This plugin allows billable line items to be attached to a Redmine issue. When the issue is closed, the plugin automatically generates a QuickBooks Online estimate containing those line items.


Requirements


Compatibility

Plugin Version Redmine Version Parent Plugin Version
2026.3.8+ 6.1.x 2026.3.9+

Features

  • Billable Line Items: Attach billable products or services directly to any Redmine issue.

  • Automated Estimate Creation: Automatically generates a QuickBooks Online Estimate when an issue is closed, streamlining the billing workflow.

Why Estimates?

Intuit does not currently provide an API for creating Delayed Charges in QuickBooks Online.

Because of this limitation, the plugin generates an Estimate when an issue is closed. This estimate can later be converted into an invoice within QuickBooks.

The alternative approach would be to modify an invoice directly after it is associated with an issue, which introduces additional complexity and potential synchronization issues.


Installation

  1. Clone the plugin

Navigate to your Redmine plugins directory:

cd /path/to/redmine/plugins  
git clone https://github.com/rickbarrette/redmine_qbo_lineitems.git  
cd redmine_qbo_lineitems  
  
# Optional: checkout a specific version  
git checkout <tag>
  1. Install dependencies
bundle install
  1. Migrate your database
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
  1. Restart Redmine

Restart your application server (Puma, Passenger, etc.) to initialize the plugin hooks.


Configuration

This plugin depends on the Redmine QuickBooks Online plugin.

Before using this plugin:

  1. Install and configure the parent plugin.

  2. Ensure your QuickBooks Online company file is connected.

  3. Sync Accounts & Items via plugin settings

  4. Set default income account for new items via plugin settings


Usage

  1. Configure: Ensure the parent QuickBooks Online plugin is connected to your company file.

  2. Add Items: On the issue page, use the new Line Items section to add billable products or services.

  3. Generate Estimate: When the work is complete, change the issue status to a state marked as closed in Redmine. The plugin will then trigger the creation of a new estimate in QuickBooks Online.


License

The MIT License (MIT)

Copyright (c) 2026 Rick Barrette

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

S
Description
No description provided
Readme MIT
1.6 MiB
0 Stars 1 Watchers 0 Forks
Languages
Ruby 51.6%
JavaScript 19.2%
CSS 16.7%
HTML 12.5%