Commit Graph
35 Commits
Author SHA1 Message Date
rickyandClaude Opus 5.5 6858842407 2026.11.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 12:11:36 -04:00
ricky 1d7978c603 2026.11.0 2026-10-31 08:54:36 -04:00
Claude ff25bba08e Depend on redmine_qbo for items, accounts and estimates
Billing has been folded into redmine_qbo 2026.11.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-30 23:48:55 -04:00
Claude 3a2d50ae8d Move items, accounts and estimate writing to redmine_qbo_billing
The QuickBooks product/service list and income accounts (models, syncs,
admin pages, routes, settings) now live in redmine_qbo_billing, which this
plugin requires. The closing-an-issue estimate is written through
RedmineQboBilling::EstimateWriter.create_estimate, so estimate building isn't
duplicated; it now also gets the customer email, VIN, default message and
expiration date.

Migrations: 002 now only links line items to items (skipped where the column
exists). 003 and 004 are removed; billing's migrations find the existing
items and accounts tables and leave them alone, so nothing is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-30 13:50:15 -04:00
ricky 1f525aba11 2026.10.0 2026-10-28 22:51:25 -04:00
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
ricky f0d6b08a3d 2026.9.0 2026-09-09 21:16:04 -04:00
ricky 9a9efcbaf9 Implement permission checks for adding and deleting line items in issue forms 2026-09-07 21:32:44 -04:00
ricky 0acf5ffca4 2026.4.2 2026-04-17 21:32:11 -04:00
ricky 3ca45a457f 2026.4.1 2026-04-17 21:14:09 -04:00
ricky b939d834e9 2026.4.0 2026-04-03 11:59:28 -04:00
ricky 50a02cc497 2026.3.12 2026-03-22 14:26:22 -04:00
ricky b63e8f2a45 Updated hooks & patches 2026-03-21 20:02:11 -04:00
ricky 6365fe6679 2026.3.11 2026-03-19 08:45:32 -04:00
ricky 20b7564c38 Added items to admin menu 2026-03-19 07:13:43 -04:00
ricky 647ce4c63a 2026.3.10 2026-03-17 23:36:29 -04:00
ricky 26f84bd221 2026.3.9 2026-03-17 19:21:47 -04:00
ricky 564158722d Updated t work with redmine_qbo 2026.3.9 2026-03-14 21:56:09 -04:00
ricky 896813983c Updated to use DSL and qbo_sync flag 2026-03-13 08:36:49 -04:00
ricky a7899fb6b3 2026.3.7 2026-03-12 11:23:25 -04:00
ricky 93ae77d9f6 2026.3.6 2026-03-11 23:54:50 -04:00
ricky ac82d5cf90 2026.3.6 2026-03-11 23:53:35 -04:00
ricky 1febdc3e04 2026.3.5 2026-03-09 20:52:38 -04:00
ricky c5dd50a369 Minium required Redmine QBO version bump for breaking changes 2026-03-09 08:26:48 -04:00
ricky 92ecf171b9 2026.3.4 2026-03-09 08:20:45 -04:00
ricky 70dc594cb2 Fixed url for plugin 2026-03-09 08:20:05 -04:00
ricky 9736f1ac96 Added settings page for Item stats 2026-03-09 00:00:46 -04:00
ricky 3b51c961e3 2026.3.3 2026-03-08 22:00:47 -04:00
ricky e58bbafda7 fixed required plugin version 2026-03-08 19:29:45 -04:00
ricky c56aa5897f 2026.3.2 2026-03-08 19:27:33 -04:00
ricky b4512f1a00 2026.3.1 2026-03-08 15:21:03 -04:00
ricky bb55c45b9b update copyright year 2026-03-07 22:01:11 -05:00
ricky 5789fef3b6 No longer need leading z since using view hook view_issues_show_description_bottom 2026-03-07 13:19:20 -05:00
ricky b297657763 renamed plugin with leading z to ensure the view hook gets called last. 2026-03-06 19:16:41 -05:00
ricky f297830750 Initial Commit 2026-03-05 08:40:23 -05:00