Commit Graph
25 Commits
Author SHA1 Message Date
Claude 06a78ebccb Move vehicle code out to redmine_qbo_vehicles
- IssueMileageListener removed: redmine_qbo_vehicles answers qbo_billing_issue_values with mileage.
- New hook qbo_billing_build_issue sets plugins' fields on issues created from an estimate; the vehicle
  lookup by VIN moved to redmine_qbo_vehicles.
- New hook qbo_billing_vin_options gives the VIN box's suggestions (RedmineQboBilling.vin_options)
  instead of reading customer.vehicles.
- The customer page's New issue link script is generic: any checkbox with
  data-new-issue-param="issue[field]" fills that field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-31 09:12:52 -04:00
Claude 9121e079a0 Fold redmine_qbo_billing into redmine_qbo
Estimates, invoices and payments written in Redmine, issues from estimates,
and the QuickBooks product/service list and accounts are now part of this
plugin (the RedmineQboBilling code, its controllers, views, strings and
permissions), so there's one plugin and one version instead of two that had
to match.

- The customer page, estimate and invoice lists and the issue page render the
  Create Estimate / Create invoice / Receive payment and Edit links directly;
  the hooks that only existed to let billing add them are gone. Users without
  the billing permissions still get the links to QuickBooks.
- Migrations 043-046 create the items and accounts tables and the estimate
  line links, skipping whatever an existing database already has
  (redmine_qbo_lineitems' tables are used as they are), and copy calendar's
  existing estimate line links in.
- The billing settings are a section of this plugin's settings page.
- The hooks other plugins use stay: qbo_billing_issue_values,
  qbo_billing_validate, qbo_billing_issue_defaults, qbo_billing_issues_created
  and view_qbo_estimate_contextual.
- rake redmine_qbo:relate_estimate_issues

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-30 23:47:01 -04:00
Claude afca8eb6ea Estimate hooks: replaceable Create Estimate link and per-estimate actions
view_customers_show_estimate_link lets a plugin replace the customer page's
Create Estimate link (which opens QuickBooks). view_estimate_actions adds
links after an estimate on the customer page's list and the issue page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-29 23:56:07 -04:00
ricky b72c82fb2b Dynamically update the link with estimate id 2026-08-17 21:03:37 -04:00
ricky 82712f361c fixed estimate path 2026-03-19 08:07:34 -04:00
ricky 020ea01d36 renamed controllers and updated routes 2026-03-18 00:08:56 -04:00
ricky 3514401808 Add unique IDs to search forms for customers and estimates 2026-02-21 19:07:40 -05:00
ricky a6751d3f41 simplified appointment link javascript 2026-02-09 21:43:29 -05:00
ricky 8944e92ffc Use html data attributes 2026-02-09 20:52:27 -05:00
ricky f4a979672f update link on change 2026-02-08 19:45:58 -05:00
ricky 6f33e9d23d Inverted conditionals in estimates and invoices lists to use 'unless' 2026-01-31 12:54:07 -05:00
ricky 92460392b9 Refactor estimates and invoices rendering to use local variables for the abilty for other plugins to display filtered lists 2026-01-31 12:45:47 -05:00
ricky b80e1d4e28 loose the hash rocket, use symbol keys 2026-01-29 22:30:59 -05:00
ricky 9ac1261ed0 Sort by id not doc_number
This fixes the bug where documents were displayed out of order
2024-08-30 09:19:58 -04:00
ricky b1a106d4d8 No id required 2022-03-14 19:27:31 -04:00
ricky 2231156873 use estimate_doc_path not a hard coded path 2022-03-14 19:01:20 -04:00
ricky 24f8be6e80 Drop the Qbo prefix 2022-03-09 21:31:56 -05:00
ricky 3ae3107760 desc sort issues, estimates, & invoices 2022-02-21 06:22:13 -05:00
ricky 8c735d3921 Added Estimate date 2022-02-20 17:19:56 -05:00
ricky 1b15aecbff Disable autocomplete suggestions for search 2022-02-20 08:11:57 -05:00
ricky 3468b5f236 Open links in new window 2022-02-19 22:53:39 -05:00
ricky a459d84b00 Added Estimate & Invoice List to Customer view 2022-02-19 21:19:08 -05:00
ricky d6aebfcb99 Moved strings to Ruby I18n en.yml 2022-02-19 20:46:39 -05:00
ricky c101a86f02 Open Estimate PDF in new windows 2022-02-17 09:19:32 -05:00
ricky 4582b8c5b9 Added estimate search in side bar 2022-02-13 10:03:43 -05:00