mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update customer.rb
This commit is contained in:
1 parent
9e9b29fef9
commit
6d176acc2b
1 file changed
+2
-2
@@ -87,10 +87,10 @@ class Customer < ActiveRecord::Base
|
||||
@details.mobile_phone = pn
|
||||
end
|
||||
|
||||
# update the localy stored phone number as a plain int
|
||||
# update the localy stored phone number as a plain string with no special chars
|
||||
def update_phone_number
|
||||
begin
|
||||
self.phone_number = self.primary_phone.tr('^0-9', '').to_i
|
||||
self.phone_number = self.primary_phone.tr('^0-9', '')
|
||||
rescue
|
||||
return nil
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user