mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 02:20:37 -05:00
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
This commit is contained in:
67 files changed
+5570
-19
No files matched your search
+51
-1
@@ -42,4 +42,54 @@ resources :customers do
|
||||
get :autocomplete
|
||||
get :sync
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Estimate writer pages. Kept under /qbo_estimates so they don't clash with redmine_qbo's /estimates/:id PDF route.
|
||||
resources :qbo_estimates, only: [:new, :create, :edit, :update] do
|
||||
member do
|
||||
post :send_email
|
||||
get :issues_preview
|
||||
post :create_issues
|
||||
end
|
||||
collection do
|
||||
get :customer_info
|
||||
get :items
|
||||
post :refresh_company
|
||||
end
|
||||
end
|
||||
|
||||
# Invoice writer pages (redmine_qbo has /invoices/:id for the PDF)
|
||||
resources :qbo_invoices, only: [:new, :create, :edit, :update] do
|
||||
member do
|
||||
post :send_email
|
||||
end
|
||||
collection do
|
||||
get :import_options
|
||||
end
|
||||
end
|
||||
|
||||
# Receive payment pages
|
||||
resources :qbo_payments, only: [:new, :create, :show] do
|
||||
member do
|
||||
get :pdf
|
||||
end
|
||||
collection do
|
||||
get :open_invoices
|
||||
end
|
||||
end
|
||||
|
||||
# QuickBooks product/service list (moved from redmine_qbo_lineitems; same URLs)
|
||||
resources :items do
|
||||
collection do
|
||||
get :autocomplete
|
||||
get :sync
|
||||
end
|
||||
end
|
||||
|
||||
# QuickBooks income accounts
|
||||
resources :accounts do
|
||||
collection do
|
||||
patch :set_default
|
||||
get :sync
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user