[Vtigercrm-commits] [Vtiger development] #8317: Return the user's Currency Symbol in the "login" Mobile operation
Vtiger development
vtiger-tickets at trac.vtiger.com
Wed Oct 22 12:03:35 GMT 2014
#8317: Return the user's Currency Symbol in the "login" Mobile operation
-------------------------+------------------------
Reporter: maggini | Owner: developer
Type: enhancement | Status: new
Priority: minor | Milestone: Unassigned
Component: vtigercrm | Version: 6.1.0
Severity: Low | Keywords: mobile
-------------------------+------------------------
Proposal of enhancement: In the Mobile endpoints, the Login operation
should return also the user's Currency Symbol in order to properly format
currencies within the mobile app(s).
The updated code in /Mobile/api/ws/Login.php should be as follows
{{{
$result['login'] = array(
'userid' => $current_user->id,
'crm_tz' =>
DateTimeField::getDBTimeZone(),
'user_tz' => $current_user->time_zone,
'user_currency' => $current_user->currency_code,
'session'=> $sessionid,
'vtiger_version' =>
Mobile_WS_Utils::getVtigerVersion(),
'date_format' =>
$current_user->date_format,
'mobile_module_version' =>
Mobile_WS_Utils::getVersion()
);
}}}
The newly added line is:
{{{
'user_currency' => $current_user->currency_code,
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8317>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list