Receipts and credit memos open QuickBooks' PDF through Redmine

Sales receipts, refund receipts and credit memos on the commission
page link to their QuickBooks PDF, fetched by Redmine (approvers only),
so nothing on the page opens QuickBooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-17 07:07:24 -05:00
1 parent 9501216525
commit e76bd12b7f
7 files changed
+57 -15

No files matched your search

+4
View File
@@ -25,6 +25,10 @@ RedmineApp::Application.routes.draw do
delete 'sales_commission/:month/adjustments/:id', to: 'sales_commissions#remove_adjustment',
as: :sales_commission_adjustment, constraints: month
# QuickBooks' PDF of a sales receipt, refund receipt or credit memo (e.g. /sales_commission/pdf/credit_memo/123)
get 'sales_commission/pdf/:kind/:txn_id', to: 'sales_commissions#txn_pdf', as: :sales_commission_txn_pdf,
constraints: { kind: /sales_receipt|refund_receipt|credit_memo/, txn_id: /\d+/ }
# Administration » Commission reps
resources :commission_reps, except: [:show]