mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 02:20:37 -05:00
Combine the labor settings into Labor products/services
The estimate item codes and "Replaced by imported time" become one list of products/services (RedmineQboBilling::LaborItems), used to create issues from an estimate's labor lines (and an appointment's minimum hours), to offer an invoice's labor lines to be replaced by imported time, and to total the hours on estimates and invoices for the business report. While none are chosen, products/services named Labor are used. The old settings and redmine_qbo_calendar's fallbacks are no longer read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
12 files changed
+120
-83
No files matched your search
@@ -27,7 +27,7 @@ class EstimateSyncService < SyncServiceBase
|
||||
|
||||
map_attributes :doc_number, :txn_date
|
||||
map_attribute :total_amount, :total
|
||||
# Man-hours: quantities of the products/services set as "Replaced by imported time"
|
||||
# Man-hours: quantities of the labor products/services (plugin settings)
|
||||
map_attribute(:hours) { |remote| RedmineQboBilling::ManHours.hours(remote) }
|
||||
map_belongs_to :customer
|
||||
|
||||
|
||||
Reference in new issue
Block a user