mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo_invoice.rb
This commit is contained in:
@@ -62,13 +62,14 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
i.save!
|
i.save!
|
||||||
|
|
||||||
# Update QBO with Milage & VIN
|
# Update QBO with Milage & VIN
|
||||||
invoice.custom_fields.each |cf|
|
invoice.custom_fields.each { |cf|
|
||||||
i.custom_field_values.each do |value|
|
i.custom_field_values.each { |value|
|
||||||
if cf.name.eql? CustomField.find_by_id(value.custom_field_id).name
|
if cf.name.eql? CustomField.find_by_id(value.custom_field_id).name
|
||||||
cf.string_value = value.value.to_s
|
cf.string_value = value.value.to_s
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
}
|
||||||
|
}
|
||||||
Qbo.get_base(:invoice).service.update(invoice)
|
Qbo.get_base(:invoice).service.update(invoice)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user