mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update qbo_invoice.rb
This commit is contained in:
1 parent
6e1d23af4e
commit
98c965c607
1 file changed
+1
-1
@@ -74,7 +74,7 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
# update the invoive custom fields with infomation from the work ticket if available
|
# update the invoive custom fields with infomation from the work ticket if available
|
||||||
invoice.custom_fields.each { |cf|
|
invoice.custom_fields.each { |cf|
|
||||||
# VIN
|
# VIN
|
||||||
if cf.name.eql? "VIN" and i.vehicles_id
|
if cf.name.eql? "VIN"
|
||||||
vin = Vehicle.find(i.vehicles_id).vin
|
vin = Vehicle.find(i.vehicles_id).vin
|
||||||
cf.string_value = vin if i.vehicles_id if not cf.string_value.to_s.eql? vin
|
cf.string_value = vin if i.vehicles_id if not cf.string_value.to_s.eql? vin
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user