Read paid invoices from Redmine instead of QuickBooks

Invoices paid in full in the month come from redmine_qbo's cached
invoices (their sales tax and paid-in-full day, redmine_qbo
2026.11.21), so viewing a month no longer reads every paid invoice
changed since it began, with their payments and credit memos, from
QuickBooks. Sales receipts, refund receipts and credit memos dated in
the month are still read from QuickBooks, together, and cached.
Read from QuickBooks and Approve first sync the invoices changed since
the last sync. Approvers are warned while paid invoices still lack
their paid-in-full day (a full sync fills it in).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-17 18:34:21 -05:00
1 parent 4229426621
commit ccc70171b4
6 files changed
+158 -159

No files matched your search

+2 -1
View File
@@ -66,7 +66,8 @@ en:
error_sales_commission_qbo: "Couldn't read QuickBooks: %{error}"
text_sales_commission_month_in_progress: "This month isn't over until %{date}, so its sales can still change. It can be approved once it's over."
text_sales_commission_read_at: "Read from QuickBooks at %{time}. It's read again every 15 minutes."
text_sales_commission_read_at: "Invoices are Redmine's copy of QuickBooks, kept up to date as they change. Sales receipts, refund receipts and credit memos were read from QuickBooks at %{time} (again every 15 minutes). Read from QuickBooks brings both up to date now."
text_sales_commission_missing_paid_on: "Some paid invoices were synced before Redmine kept the day they were paid in full, so they aren't counted yet. Run a full sync of invoices (Administration » Plugins » QuickBooks » Full sync) once."
text_sales_commission_approved_by: "Approved for payroll by %{user} on %{time}."
text_sales_commission_threshold_met: "reached"
text_sales_commission_threshold_of: "to reach %{amount}"