mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Fixed merge error
This commit is contained in:
@@ -156,16 +156,11 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
# Push updates
|
# Push updates
|
||||||
#invoice.sync_token += 1 if is_changed
|
#invoice.sync_token += 1 if is_changed
|
||||||
begin
|
begin
|
||||||
|
logger.debug "Trying to update invoice"
|
||||||
get_base.update(invoice) if is_changed
|
get_base.update(invoice) if is_changed
|
||||||
rescue
|
rescue
|
||||||
# Do nothing, probaly too many vehicles on the invoice. This is a problem with how it's billed
|
# Do nothing, probaly too many vehicles on the invoice. This is a problem with how it's billed
|
||||||
# TODO Add notes in memo area
|
# TODO Add notes in memo area
|
||||||
if is_changed
|
|
||||||
logger.debug "Trying to update invoice"
|
|
||||||
get_base.update(invoice) if is_changed
|
|
||||||
end
|
|
||||||
rescue
|
|
||||||
#do nothing
|
|
||||||
logger.fatal "Failed to update invoice"
|
logger.fatal "Failed to update invoice"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user