[OpenVPMS Developers] SMS numbers, Fax Phone Numbers and a little Pedantry

Message from clinic@sunshinevet.com.au clinic@sunshinevet.com.au

1.  SMS

All our mobile phone numbers (and I guess the same goes for many other vets)  have been set up with

Area code field:  04nn  (eg 0411) Number field: nnn-nnn or nnn nnn (eg 123-456) When trying to get a number for SMS, openVPMS v1.5+ currently uses only the number field which means that I get an SMS number of 61123456 instead of 61411123456.

If the openVPMS code getting the phone number is altered to grab both area code and number, remove leading zero, add "61", then check and remove any non-numeric character (this would take care of spaces, hyphens, dots, and any comments after the phone number (eg "ask for Jane" etc), the SMS number using the example above would be 0411 123-456 -> 61411123456.

2. Phone Numbers

User fields for Work, home, mobile numbers are all returned as "(" + string(area.code) +* ") " *+ string(number) to give a number such as (03) 1234-1234 However, the user field for fax number omits the space after the closing bracket ie "(" + string(area.code) +* ")" *+ string(number) to give a number such as (03)1234-1234.

When designing a form with phone numbers, the fax number therefore doesn't line up with numbers above and below. eg (03) 1234-5678 (Work) (03)1234-5678 (Fax) (03) 1234-5678 (home)

3. General Pedantry

customer.entity.name currently returns *string(last.name) + "," + string(first.name)* to give *Smith,John* could it be altered to return *string(last.name) + ", " + string(first.name)* as *Smith, John* (ie a space after the comma - it looks neater).

Yuri.

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

Syndicate content