This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$viewdefs['Leads']['base']['view']['record'] = array( | |
'buttons' => array( | |
. | |
. | |
. | |
), | |
'panels' => array( | |
. | |
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dictionary['Account']['visibility'] = array( | |
"OwnedByTeamField" => true, | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ActivitiesLogicHookCustom{ | |
public function notifyActivity($bean, $event, $arguments){ | |
if($bean->module_name == 'Activities'){ | |
global $current_user; | |
$data = json_decode($bean->data); | |
$message = preg_replace('/(\@)\[\w+\:[a-f0-9-]{36}\:([\w ]+)\]/u', '$1$2', $data->value); | |
foreach($data->tags as $tag){ | |
if($tag->module == 'Users'){ | |
$notification = BeanFactory::newBean('Notifications'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$viewdefs['Accounts']['base']['layout']['nrfm'] = array( | |
'type' => 'simple', | |
'components' => array( | |
array( | |
'view' => 'nrfm', | |
), | |
), | |
); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
extendsFrom: 'RecordView', | |
initialize: function (options) { | |
this._super('initialize', arguments); | |
debugger; | |
this.model.on("change:solucion_c",this.calculate, this); | |
}, | |
calculate:function() { | |
var solucion_c = this.model.get('solucion_c'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sugarQuery = new SugarQuery(); | |
$sugarQuery->select(array('id', 'name', 'precio')); | |
$precioBean = BeanFactory::newBean('MXC06_Precio'); | |
$sugarQuery->from($precioBean); | |
$sugarQuery->join('mxc06_precio_accounts'); | |
$sugarQuery->join('mxc06_precio_producttemplates'); | |
$sugarQuery->where() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://<sugarinstance>/rest/v10/Accounts/filter/? | |
filter[1][date_entered][$dateBetween][]=2014-05-24 | |
&filter[1][date_entered][$dateBetween][]=2014-05-27 | |
&fields=id,no_cliente_c | |
&filter[0][$or][][no_cliente_c]=1563 | |
&filter[0][$or][][no_cliente_c]=1280 | |
&filter[0][$or][][no_cliente_c]=1443 | |
&filter[0][$or][][no_cliente_c]=3078 | |
&filter[0][$or][][no_cliente_c]=10266 | |
&filter[0][$or][][no_cliente_c]=1654 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
/********************************************************************************* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********************************************************************************* | |
* By installing or using this file, you are confirming on behalf of the entity | |
* subscribed to the SugarCRM Inc. product ("Company") that Company is bound by | |
* the SugarCRM Inc. Master Subscription Agreement (“MSA”), which is viewable at: | |
* http://www.sugarcrm.com/master-subscription-agreement | |
* | |
* If Company is not bound by the MSA, then by installing or using this file | |
* you are agreeing unconditionally that Company will be bound by the MSA and | |
* certifying that you have authority to bind Company accordingly. |