fixed order

This commit is contained in:
2026-03-12 17:55:09 -04:00
parent beb4a66a93
commit 29530e2c95

View File

@@ -14,10 +14,10 @@ class ServiceBase
# The QBO client is used to communicate with QuickBooks Online, while the local record contains the data that needs to be pushed to QBO. # The QBO client is used to communicate with QuickBooks Online, while the local record contains the data that needs to be pushed to QBO.
# If no local is provided, the service will not perform any operations. # If no local is provided, the service will not perform any operations.
def initialize(qbo:, local: nil) def initialize(qbo:, local: nil)
@entity = local.class.name
raise "No QBO configuration found" unless qbo raise "No QBO configuration found" unless qbo
raise "#{@entity} record is required for push operation" unless local raise "#{@entity} record is required for push operation" unless local
@qbo = qbo @qbo = qbo
@entity = local.class.name
@local = local @local = local
end end