mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update customer.rb
This commit is contained in:
@@ -90,7 +90,7 @@ class Customer < ActiveRecord::Base
|
|||||||
# update the localy stored phone number as a plain int
|
# update the localy stored phone number as a plain int
|
||||||
def update_phone_number
|
def update_phone_number
|
||||||
begin
|
begin
|
||||||
phone_number = primary_phone.tr('^0-9', '').to_i
|
self.phone_number = self.primary_phone.tr('^0-9', '').to_i
|
||||||
rescue
|
rescue
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user