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
var sys = require('util'), | |
rest = require('restler'); | |
var baseurl = "<<instance URL>>/rest/v10" | |
// get oAuth token | |
var jsonData = {"grant_type":"password","username":"<<username>>","password":"<<password>>","client_id":"sugar"}; | |
rest.postJson(baseurl+'/oauth2/token', jsonData).on('2XX', function(data) { | |
if ( data.error ) { | |
sys.puts("Error: " + data.error_message); |
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 CasesLogicHook{ | |
protected $urlApiNotifications = 'http://node.test.dev/api/notifications'; | |
protected $notificaciones = array( | |
'Assigned' => array( | |
'id_template' => '26735934-183c-4f76-3e97-50984ae40813', | |
'message' => "El caso con número {case_number} ha sido asignado para su precesamiento.", | |
), |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<meta name="viewport" content="width=device-width"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> |
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 AbproCases{ | |
protected $urlApiNotifications = 'http://node.abpro.dev/api/notifications'; | |
protected $notificaciones = array( | |
'Assigned' => array( | |
'id_template' => '26735934-183c-4f76-3e97-50984ae40813', | |
'message' => "El caso con número {case_number} ha sido asignado para su precesamiento.", | |
), |
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 ['Cases'] = | |
array ( | |
'EditView' => | |
array ( | |
'templateMeta' => | |
array ( | |
'maxColumns' => '2', | |
'widths' => | |
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 | |
array_push($job_strings, 'contacts_birthday_job'); | |
function contacts_birthday_job(){ | |
clearContactsBirthday(); | |
$GLOBALS['log']->debug('JOB::contacts_birthday_job:start'); | |
setBirthday(); | |
return true; | |
} | |
function clearContactsBirthday(){ |
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 ($data['type'] == 'parent') { | |
//See if we need to join anything by inspecting the where clause | |
$match = preg_match('/(^|[\s(])parent_(\w+)_(\w+)\.name/', $where, $matches); | |
if ($match) { | |
$joinTableAlias = 'jt' . $jtcount; | |
$joinModule = $matches[2]; | |
$joinTable = $matches[3]; | |
$localTable = $this->table_name; |
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
$('input.compare').managerFieldCompare({ | |
"types":["eq","lt" , "gt", "lte", "gte", "btn"], | |
"comboClass": "input input-small", | |
"inputClass": "input input-small", | |
callback: function(inputs){ | |
$(inputs).datepicker(); | |
} | |
}); |
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'); | |
require_once('include/MVC/View/views/view.edit.php'); | |
class CustomViewEdit extends ViewEdit { | |
var $ev; | |
var $type ='edit'; | |
var $useForSubpanel = false; //boolean variable to determine whether view can be used for subpanel creates | |
var $useModuleQuickCreateTemplate = false; //boolean variable to determine whether or not SubpanelQuickCreate has a separate display function | |
var $showTitle = 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
from d in Vt_cxc_docs_clas2 | |
where Math.Round((double)d.Saldo, 2, MidpointRounding.AwayFromZero) != 0 | |
group d by new{ | |
agrupador = "ClasificacionContable" == "" ? d.Desc_clas : | |
"Corporativo" == "Corporativo" ? d.Nom_corp : | |
"ClasificacionAlterna" == "" ? d.Des_clas2: | |
"TipoImpuesto" == "" ? d.Des_impto: | |
"CondicionPago" == "" ? d.Des_cnd_pag: | |
"MedioEnvio" == "" ? d.Des_med_env: | |
"Vendedor" == "" ? d.Nom_vendedor: |