3 Commits

Author SHA1 Message Date
3b51c961e3 2026.3.3 2026-03-08 22:00:47 -04:00
1780896e84 Set page size to 10 2026-03-08 21:48:03 -04:00
91cdd86c12 Add logging 2026-03-08 20:10:14 -04:00
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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'