mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 16:21:58 -04:00
Added Attribute Mapping DSL
This commit is contained in:
@@ -17,6 +17,7 @@ class EstimateSyncService < SyncServiceBase
|
||||
Estimate
|
||||
end
|
||||
|
||||
map_attribute :customer, ->(remote) { Customer.find_by(id: remote.customer_ref&.value) }
|
||||
map_attributes :doc_number, :txn_date
|
||||
map_belongs_to :customer
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user