Invoices on the commission page open in Redmine

Paid sales invoices link to their Redmine invoice page (or PDF without
the Write invoices permission) instead of QuickBooks. Sales receipts,
refund receipts and credit memos, which Redmine has no page for, still
open in 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:00:28 -05:00
1 parent 6fcd5f9b64
commit 73e643a6f9
3 files changed
+14 -3

No files matched your search

@@ -57,6 +57,10 @@ class SalesCommissionsTest < Redmine::IntegrationTest
assert_select 'input[name=?][value=?][checked]', 'included[]', 'refund_receipt:3'
assert_select 'input[name=?][value="2"][checked]', 'eligible[]'
assert_select 'input[name=approve]'
# Invoices open in Redmine, the refund receipt (no Redmine page) in QuickBooks
assert_select '#sales-commission-sales a[href=?]', '/qbo_invoices/1/edit'
assert_select '#sales-commission-sales a[href*="qbo.intuit.com"]', count: 0
assert_select '#sales-commission-deductions a[href*="qbo.intuit.com/app/refundreceipt?txnId=3"]'
end
def test_view_only