mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Append last 4 of phone number to customers name
This commit is contained in:
@@ -23,7 +23,7 @@ class Customer < ActiveRecord::Base
|
|||||||
|
|
||||||
# returns a human readable string
|
# returns a human readable string
|
||||||
def to_s
|
def to_s
|
||||||
return name
|
return "#{self[:name]} - #{phone_number.split(//).last(4).join unless phone_number.nil?}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Convenience Method
|
# Convenience Method
|
||||||
|
|||||||
Reference in New Issue
Block a user