Commit Graph
96 Commits
Author SHA1 Message Date
ricky 1d7978c603 2026.11.0 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 dec5b32165 Billing job: VIN and mileage from the work order via redmine_qbo_billing
The estimate made when an issue closes gets the issue's VIN and mileage from
redmine_qbo_billing's issue values hook, instead of reading the vehicle here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-30 22:32:24 -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.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.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.4.2 2026-04-17 21:32:11 -04:00
ricky 5b1d98aa07 Show running total even if issue doesn't have line items but it's children do 2026-04-17 21:31:46 -04:00
ricky 3ca45a457f 2026.4.1 2026.4.1 2026-04-17 21:14:09 -04:00
ricky c9d2a47a92 Added running total calculated using subtask totals from the entire issue tree 2026-04-17 21:13:33 -04:00
ricky b939d834e9 2026.4.0 2026.4.0 2026-04-03 11:59:28 -04:00
ricky 9b9a5c3505 Preventing Implicit Deletions 2026-04-03 11:58:56 -04:00
ricky da49b996da removed redundant private 2026-03-22 18:31:24 -04:00
ricky 50a02cc497 2026.3.12 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 4b561ef4e3 added progressive row creation 2026-03-19 12:44:27 -04:00
ricky 1dadcf37b6 Added screenshots for items and accounts 2026-03-19 09:12:38 -04:00
ricky ffaee10fef updated readme 2026-03-19 09:00:39 -04:00
ricky 58994e3c7d Updated readme 2026-03-19 08:56:47 -04:00
ricky 6365fe6679 2026.3.11 2026.3.11 2026-03-19 08:45:32 -04:00
ricky 4d6c16373a Don't display form if issue if closed 2026-03-19 08:38:21 -04:00
ricky 20b7564c38 Added items to admin menu 2026-03-19 07:13:43 -04:00
ricky 9820646857 allow math on unit price field 2026-03-18 22:02:53 -04:00
ricky 647ce4c63a 2026.3.10 2026.3.10 2026-03-17 23:36:29 -04:00
ricky 4367c77393 updaed locale 2026-03-17 20:49:58 -04:00
ricky 8c0ce8ce48 updated locale 2026-03-17 20:45:21 -04:00
ricky 9fd1f4fb7d removed back link 2026-03-17 20:37:58 -04:00
ricky cca822c570 better display flags 2026-03-17 20:35:40 -04:00
ricky 795906b4f5 Sync Item account numbers 2026-03-17 20:26:52 -04:00
ricky d5e59c120c Make qbo item inactive if deleted 2026-03-17 19:45:36 -04:00
ricky e640e61648 Added missing label_item_new 2026-03-17 19:45:14 -04:00
ricky c968893f94 fixed taxable check 2026.3.9 2026-03-17 19:29:05 -04:00
ricky 26f84bd221 2026.3.9 2026-03-17 19:21:47 -04:00
ricky f59849e6e5 Merge remote-tracking branch 'origin/master' 2026-03-17 19:20:08 -04:00
ricky 6bf5575f9c Updated views for items and accounts 2026-03-17 19:18:03 -04:00
ricky 2703d6cc3e Default to taxable, otherwise folllow tax flag 2026-03-17 18:27:56 -04:00
ricky 24e3e4ba82 Added taxable flag 2026-03-17 12:25:58 -04:00
ricky f81fe0ef87 Added accounts to allow for assinging income account to items, and selecting default income account. Also added item type selection 2026-03-16 22:59:54 -04:00
ricky a2cc7a97fd Added comment 2026-03-15 18:57:48 -04:00
ricky 7088550184 Removed ItemSyncJob as it was replaced withj QboSyncJob 2026-03-15 17:44:14 -04:00
ricky 2302679c3a updated ItemSyncService init call 2026-03-15 07:50:07 -04:00
ricky ec1ef72267 Use a private note to make it clear where the estimate came from. 2026-03-14 22:13:45 -04:00
ricky 564158722d Updated t work with redmine_qbo 2026.3.9 2026-03-14 21:56:09 -04:00
ricky 60a7f769ce Added Screenshots 2026-03-14 08:03:04 -04:00
ricky 1367937614 Merge remote-tracking branch 'origin/master' 2026.3.8 2026-03-13 08:39:23 -04:00
ricky 62adcb11cd fixed typo 2026-03-13 08:38:41 -04:00
ricky 896813983c Updated to use DSL and qbo_sync flag 2026-03-13 08:36:49 -04:00
ricky 89e3048c29 Update README.md 2026-03-12 12:17:22 -04:00