mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update vehicles_controller.rb
This commit is contained in:
@@ -40,10 +40,10 @@ class VehiclesController < ApplicationController
|
|||||||
@customer = @vehicle.qbo_customer.name if @vehicle.qbo_customer
|
@customer = @vehicle.qbo_customer.name if @vehicle.qbo_customer
|
||||||
|
|
||||||
if @vehicle.vin?
|
if @vehicle.vin?
|
||||||
details = @vehicle.details
|
@details = @vehicle.details
|
||||||
@style = details['years'][0]['styles'][0]['name']
|
@style = @details['years'][0]['styles'][0]['name']
|
||||||
@drive = @vehicle.vehicle_drivenWheels
|
@drive = @details['vehicle_drivenWheels']
|
||||||
@doors = details['numOfDoors']
|
@doors = @details['numOfDoors']
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user