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:
@@ -102,26 +102,27 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
cf.string_value = value.value.to_s
|
cf.string_value = value.value.to_s
|
||||||
is_changed = true
|
is_changed = true
|
||||||
end
|
end
|
||||||
|
break
|
||||||
|
end
|
||||||
|
|
||||||
# Use the max milage
|
# Use the max milage
|
||||||
else if cf.name.eql? "Mileage Out"
|
if cf.name.eql? "Mileage Out"
|
||||||
if cf.string_value.to_i < value.value.to_i
|
if cf.string_value.to_i < value.value.to_i
|
||||||
cf.string_value = value.value.to_s
|
cf.string_value = value.value.to_s
|
||||||
is_changed = true
|
is_changed = true
|
||||||
end
|
end
|
||||||
|
break
|
||||||
|
end
|
||||||
|
|
||||||
# Everything else
|
# Everything else
|
||||||
else
|
cf.string_value = value.value.to_s
|
||||||
cf.string_value = value.value.to_s
|
is_changed = true
|
||||||
is_changed = true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
# Nothing to do here, there is no match
|
# Nothing to do here, there is no match
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user