天道酬勤,学无止境

suitecrm

SuiteCRM rendering format of variable in pdf template (like date)

on SuiteCRM-7.8.13 I could not find any answer to a question, like the one in this link, about rendering format of variable in PDF template on search engines and SO. You'll find here the result of my investigation. PDF templates fields that were not formated as I needed and among them the date. The rendering on the PDF template of the var $aos_quotes_date_entered was month/day/year + time in am/pm style. I just wanted the date with the order day/month/year to match the french style I needed. I delved into the code and found where to alter it. IT IS NOT CLEAN, JUST A HINT, BUT MIGHT HELP OTHERS

2022-02-16 11:53:54    分类:问答    suitecrm

How To add Auto Increment in module default ID fields Suit CRM

Is it possible to add auto increment in module default ID field in Suite CRM. ID field contains 36 char type. Is there any settings options available in SuiteCRM ?

2022-02-08 03:57:50    分类:问答    php   sugarcrm   suitecrm

SuiteCRM - 修复文件权限(SuiteCRM - fix file permissions)

问题 我正在尝试更新 SuiteCRM 的文件权限。 我需要在 GNU bash 中运行以下代码,但我无法找出列出文件权限的正确语法。 我是root用户 sudo chown -R www-data:www-data . sudo chmod -R 755 . sudo chmod -R 775 cache custom modules themes data upload sudo chmod 775 config_override.php 2>/dev/null 版本是 GNU bash,版本 4.2.46(2)-release (x86_64-redhat-linux-gnu) 正确的文件权限语法 回答1 对于 SuiteCRM,这就是我为重置权限所做的(在执行之前您必须是 root) 请适应您的网络服务器用户(此用户适用于 ubuntu ) find . -type d ! -path ./vendor -exec chmod 0755 {} \; && find . -type f ! -path ./vendor -exec chmod 0644 {} \; chmod -R 775 cache custom modules themes data upload config_override.php config.php chown -R www-data:www

2021-12-03 12:24:23    分类:技术分享    bash   syntax   suitecrm

SuiteCRM - fix file permissions

I am trying to update the file permissions for SuiteCRM. I need to run the following code in GNU bash, but I cannot figure out the correct syntax to list the file permissions. I am the root user sudo chown -R www-data:www-data . sudo chmod -R 755 . sudo chmod -R 775 cache custom modules themes data upload sudo chmod 775 config_override.php 2>/dev/null Version is GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu) correct syntax for file permissions

2021-11-12 21:54:53    分类:问答    bash   syntax   suitecrm

添加 Where 条件以列出视图suitecrm/sugarcrm 后,搜索选项被删除?(Search option is removed after adding Where condition to list view suitecrm/sugarcrm?)

问题 我想根据条件自定义列表视图,所以我关注这个博客在列表视图中添加 where 条件 开发者博客来自 Sugar 列表视图页面的 where 子句 但这样做后,我没有在我的自定义列表视图中获得搜索选项。 任何人都可以指导我吗? 以下是修改后的列表视图(我为此关注了提到的博客) <?php require_once('include/MVC/View/views/view.list.php'); require_once('custom/modules/Contacts/ContactsListViewSmarty.php'); class ContactsViewList extends ViewList { /** * @see ViewList::preDisplay() */ var $where = ""; function AccountsViewList() { parent::ViewList(); } public function preDisplay(){ require_once('modules/AOS_PDF_Templates/formLetter.php'); formLetter::LVPopupHtml('Contacts'); parent::preDisplay(); if($_GET['parentTab']=='Sales'){

2021-11-09 00:00:53    分类:技术分享    php   smarty   sugarcrm   suitecrm

Search option is removed after adding Where condition to list view suitecrm/sugarcrm?

I want to customize the list view based on condition so i followed this blog to add where condition in list view Developer Blog From Sugar where clause for sugar list-view pages but after doing this i am not getting search options in my custom list view. Can any one guide me on this? Following is the modified list view(i followed mentioned blog for this) <?php require_once('include/MVC/View/views/view.list.php'); require_once('custom/modules/Contacts/ContactsListViewSmarty.php'); class ContactsViewList extends ViewList { /** * @see ViewList::preDisplay() */ var $where = ""; function

2021-11-05 02:22:21    分类:问答    php   smarty   sugarcrm   suitecrm

无法通过 REST API 登录 SuiteCRM(Not able to login in SuiteCRM through REST API)

问题 我正在尝试使用 REST API 登录 SuiteCRM。 使用演示 SuiteCRM rest API 文档中显示的相同代码。 该代码在本地主机上运行良好。 但是当我将文件放入服务器时。 它显示一个空白屏幕。 <?php $url = "http://example.com/suitecrm/service/v4_1/rest.php"; function restRequest($method, $arguments){ global $url; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $post = array( "method" => $method, "input_type" => "JSON", "response_type" => "JSON", "rest_data" => json_encode($arguments), ); curl_setopt($curl, CURLOPT_POSTFIELDS, $post); $result = curl_exec($curl); curl_close($curl); return json_decode($result,1); } $userAuth = array( 'user_name' =>

2021-10-23 01:04:01    分类:技术分享    php   rest   api   suitecrm

SuiteCRM 为popview自定义where条件查询(SuiteCRM Make custom where condition query for popview)

问题 如何对弹出视图进行自定义查询,我如上所述在 ViewList 中进行了更改,但它不会影响弹出视图列表中的列表。 我的要求是当我从发票模块打开它时传递产品类型。 在发票中,我们有产品线和服务线,从产品模块来看,我在添加新产品作为“商品”或“服务”时按类型区分产品。 现在我已经创建了 2 个自定义文件,view.list.php 和 view.popup.php。 但不明白如何将类型标志从 view.popup.php 传递到 view.list.php 如果有人建议我在关联从服务线调用的弹出窗口和从产品线调用的弹出窗口时如何过滤产品数据,那就太好了。 谢谢 回答1 您将需要更改列表查询并相应地添加条件。 以下是扩展 LlistView 查询需要遵循的步骤: 第 1 步:创建或编辑custom/modules/Opportunities/views/view.list.php并添加以下代码, processSearchForm(); if(!$current_user->is_admin) // remove this condition if you dont want admin user to view the “Closed Lost” Opportunities. $this->params[‘custom_where’] = ‘ AND opportunities

2021-10-21 18:38:15    分类:技术分享    sugarcrm   suitecrm