Skip to content

Instantly share code, notes, and snippets.

View Vincent-aCRM's full-sized avatar

Vincent aCRM Vincent-aCRM

  • London UK
View GitHub Profile
@dmulvi
dmulvi / CustomSugarpdf.php
Last active June 5, 2020 08:46
Save File as Note Attachment or Document in SugarCRM
<?php
require_once 'include/Sugarpdf/Sugarpdf.php';
class CustomSugarpdf extends Sugarpdf
{
function Footer() {
// just need to remove the unwanted hr
}
}
@sadekbaroudi
sadekbaroudi / createAndUpdateACLRoles.php
Created June 12, 2015 23:57
SugarCRM 7 - ACL Role create / update deployment script
<?php
define('sugarEntry', true);
require_once('include/entryPoint.php');
require_once('modules/ACLRoles/ACLRole.php');
require_once('modules/ACLActions/actiondefs.php');
// metadata for creates or updates, see all possibilities for 'def' in modules/ACLActions/actiondefs.php
$acl = array(
// Create new role
@maranemil
maranemil / gist:924f4dcfb59b2ec022b9
Last active February 5, 2020 10:56
Custom AutoIncrement Field in SugarCRM
/**
April 22, 2014 in Desarrollo, Sugar
1.) Custom AutoIncrement Field(having unique value):
For declaring “autoincrement” field in sugacrm do as follows:
Suppose we have to declare “Au Pair number” field as an autoincrement field in suagcrm. For this we have to declare vardef in custom/Extension/modules/oss_auPairs/Ext/Vardefs/vardefs.ext.php as follows:
*/
$dictionary["oss_auPairs"]["fields"]["aupair_number"] =array (