mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 02:20:37 -05:00
Cache totals, man-hours and payments; add a business report
- Estimates now keep their total; estimates and invoices keep their man-hours: the quantities of the products/services set as "Replaced by imported time" (bundles included; the estimate item codes while that setting is blank). Filled in by the webhook and the sync. - Payment model (QboBaseModel) caching each payment's customer, date, amount and unapplied amount, kept current by the webhook, the sync and the Receive payment page. - Business report (View business reports permission, top menu): estimates written vs. invoices written vs. payments received, and estimated hours on estimates and issues vs. invoiced and spent hours, for a period, with a month-by-month breakdown. - Fix two keyword arguments that defaulted to themselves (QboSyncDispatcher.enque_jobs, PdfService), which newer Ruby refuses to parse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
20 files changed
+590
-5
No files matched your search
@@ -14,7 +14,8 @@ class QboSyncDispatcher
|
||||
Customer,
|
||||
Estimate,
|
||||
Invoice,
|
||||
Employee
|
||||
Employee,
|
||||
Payment
|
||||
].freeze
|
||||
|
||||
# Dispatches all synchronization jobs to perform a full sync of QuickBooks entities with the local database.
|
||||
@@ -27,7 +28,7 @@ class QboSyncDispatcher
|
||||
private
|
||||
|
||||
# Dynamically enques all sync jobs
|
||||
def self.enque_jobs(full_sync: full_sync)
|
||||
def self.enque_jobs(full_sync: false)
|
||||
jobs = SYNC_JOBS.dup
|
||||
|
||||
# Allow other plugins to add addtional sync jobs via Hooks
|
||||
|
||||
Reference in new issue
Block a user