mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 15:11:58 -04:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b51c961e3 | |||
| 1780896e84 | |||
| 91cdd86c12 |
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
class ItemSyncService < SyncServiceBase
|
class ItemSyncService < SyncServiceBase
|
||||||
|
|
||||||
|
PAGE_SIZE = 10
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Specify the local model this service syncs
|
# Specify the local model this service syncs
|
||||||
@@ -19,10 +21,15 @@ class ItemSyncService < SyncServiceBase
|
|||||||
|
|
||||||
# Map relevant attributes from the QBO Employee to the local Employee model
|
# Map relevant attributes from the QBO Employee to the local Employee model
|
||||||
def process_attributes(local, remote)
|
def process_attributes(local, remote)
|
||||||
|
log "Processing Item ##{remote.id}"
|
||||||
local.id = remote.id
|
local.id = remote.id
|
||||||
local.description = remote.description
|
local.description = remote.description
|
||||||
local.unit_price = remote.unit_price
|
local.unit_price = remote.unit_price
|
||||||
local.active = remote.active?
|
local.active = remote.active?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def log(msg)
|
||||||
|
Rails.logger.info "[ItemSyncService] #{msg}"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
2
init.rb
2
init.rb
@@ -14,7 +14,7 @@ Redmine::Plugin.register :redmine_qbo_lineitems do
|
|||||||
name 'Redmine QBO Line Items plugin'
|
name 'Redmine QBO Line Items plugin'
|
||||||
author 'Rick Barrette'
|
author 'Rick Barrette'
|
||||||
description 'A plugin for Redmine to extend the capabilitys of the Redmine QuickBooks Online plugin to attach billable line items to an isuue'
|
description 'A plugin for Redmine to extend the capabilitys of the Redmine QuickBooks Online plugin to attach billable line items to an isuue'
|
||||||
version '2026.3.2'
|
version '2026.3.3'
|
||||||
url 'https://github.com/rickbarrette/redmine_qbo'
|
url 'https://github.com/rickbarrette/redmine_qbo'
|
||||||
author_url 'https://barrettefabrication.com'
|
author_url 'https://barrettefabrication.com'
|
||||||
requires_redmine version_or_higher: '6.1.0'
|
requires_redmine version_or_higher: '6.1.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user