forked from salesagility/SuiteCRM
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SinergiaCRM 1.6.4 Release merge (#359)
- Loading branch information
Showing
19 changed files
with
786 additions
and
70 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
28 changes: 28 additions & 0 deletions
28
custom/Extension/application/Ext/Extensions/SDAVardefs.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* This file is part of SinergiaCRM. | ||
* SinergiaCRM is a work developed by SinergiaTIC Association, based on SuiteCRM. | ||
* Copyright (C) 2013 - 2023 SinergiaTIC Association | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU Affero General Public License version 3 as published by the | ||
* Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along with | ||
* this program; if not, see http://www.gnu.org/licenses or write to the Free | ||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
* 02110-1301 USA. | ||
* | ||
* You can contact SinergiaTIC Association at email address [email protected]. | ||
*/ | ||
|
||
$extensions["SDAVardefs"] = array( | ||
"section" => "SDAVardefs", | ||
"extdir" => "SDAVardefs", | ||
"file" => 'SDAVardefs.ext.php', | ||
"module" => ""); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
/** | ||
* This file is part of SinergiaCRM. | ||
* SinergiaCRM is a work developed by SinergiaTIC Association, based on SuiteCRM. | ||
* Copyright (C) 2013 - 2023 SinergiaTIC Association | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU Affero General Public License version 3 as published by the | ||
* Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along with | ||
* this program; if not, see http://www.gnu.org/licenses or write to the Free | ||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
* 02110-1301 USA. | ||
* | ||
* You can contact SinergiaTIC Association at email address [email protected]. | ||
*/ | ||
|
||
/** | ||
* Array of virtual fields for SinergiaDA (Sinergia Data Analytics). | ||
* | ||
* This array defines various virtual fields that can be used in SinergiaDA for different purposes. | ||
* | ||
* Each element of the array represents a virtual field. | ||
* | ||
* General structure of each element: | ||
* | ||
* @key string The key is the virtual field name without the 'LBL_' prefix | ||
* | ||
* @param string label Label of the virtual field (includes the 'LBL_' prefix) | ||
* @param string description Description of the virtual field (includes the 'LBL_' prefix) | ||
* @param string type Data type of the virtual field (e.g., 'numeric', 'text', 'date') | ||
* @param int precision Precision for numeric fields (number of decimal places) | ||
* @param int hidden Visibility flag (0 = visible to all, 1 = visible only to administrators in SDA) | ||
* @param string expression SQL expression to calculate the virtual field value | ||
* | ||
*/ | ||
|
||
$SDAVirtualFields = array( | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_0' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_0', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_0_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE()),'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE()),'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_1' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_1', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_1_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-1,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-1,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_2' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_2', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_2_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-2,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-2,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_3' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_3', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_3_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-3,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-3,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_4' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_4', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_4_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-4,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-4,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
); |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
* You can contact SinergiaTIC Association at email address [email protected]. | ||
*/ | ||
|
||
$mod_strings = array ( | ||
$mod_strings = array( | ||
'LBL_ASSIGNED_TO_ID' => 'Asignado a', | ||
'LBL_ASSIGNED_TO_NAME' => 'Asignado a', | ||
'LBL_ASSIGNED_TO' => 'Asignado a', | ||
|
@@ -77,4 +77,14 @@ | |
'LBL_STIC_ACCOUNTS_RELATIONSHIPS_ACCOUNTS_FROM_ACCOUNTS_TITLE' => 'Organización', | ||
'LBL_START_DATE_ERROR' => 'A data de alta debe ser anterior á data de baixa.', | ||
'LBL_END_DATE_ERROR' => 'A data de baixa debe ser posterior á data de alta.', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_0' => 'Relación activa este ano', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_0_DESCRIPTION' => 'Indica se a relación estivo activa en calquera momento este ano.', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_1' => 'Relación activa o ano anterior', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_1_DESCRIPTION' => 'Indica se a relación estivo activa en calquera momento o ano anterior.', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_2' => 'Relación activa hai dous anos', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_2_DESCRIPTION' => 'Indica se a relación estivo activa en calquera momento hai dous anos.', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_3' => 'Relación activa hai tres anos', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_3_DESCRIPTION' => 'Indica se a relación estivo activa en calquera momento hai tres anos.', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_4' => 'Relación activa hai catro anos', | ||
'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_4_DESCRIPTION' => 'Indica se a relación estivo activa en calquera momento hai catro anos.', | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
/** | ||
* This file is part of SinergiaCRM. | ||
* SinergiaCRM is a work developed by SinergiaTIC Association, based on SuiteCRM. | ||
* Copyright (C) 2013 - 2023 SinergiaTIC Association | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU Affero General Public License version 3 as published by the | ||
* Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along with | ||
* this program; if not, see http://www.gnu.org/licenses or write to the Free | ||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
* 02110-1301 USA. | ||
* | ||
* You can contact SinergiaTIC Association at email address [email protected]. | ||
*/ | ||
|
||
/** | ||
* Array of virtual fields for SinergiaDA (Sinergia Data Analytics). | ||
* | ||
* This array defines various virtual fields that can be used in SinergiaDA for different purposes. | ||
* | ||
* Each element of the array represents a virtual field. | ||
* | ||
* General structure of each element: | ||
* | ||
* @key string The key is the virtual field name without the 'LBL_' prefix | ||
* | ||
* @param string label Label of the virtual field (includes the 'LBL_' prefix) | ||
* @param string description Description of the virtual field (includes the 'LBL_' prefix) | ||
* @param string type Data type of the virtual field (e.g., 'numeric', 'text', 'date') | ||
* @param int precision Precision for numeric fields (number of decimal places) | ||
* @param int hidden Visibility flag (0 = visible to all, 1 = visible only to administrators in SDA) | ||
* @param string expression SQL expression to calculate the virtual field value | ||
* | ||
*/ | ||
|
||
$SDAVirtualFields = array( | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_0' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_0', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_0_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE()),'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE()),'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_1' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_1', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_1_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-1,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-1,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_2' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_2', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_2_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-2,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-2,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_3' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_3', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_3_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-3,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-3,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
'SDA_ACTIVE_CURRENT_YEAR_MINUS_4' => array( | ||
'label' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_4', | ||
'description' => 'LBL_SDA_ACTIVE_CURRENT_YEAR_MINUS_4_DESCRIPTION', | ||
'type' => 'text', | ||
'precision' => 0, | ||
'hidden' => 0, | ||
'expression' => "CASE | ||
WHEN (start_date IS NULL OR start_date <= LAST_DAY(CONCAT(YEAR(CURDATE())-4,'-12-31'))) | ||
AND (end_date IS NULL OR end_date >= CONCAT(YEAR(CURDATE())-4,'-01-01')) | ||
THEN 1 | ||
ELSE 0 | ||
END", | ||
), | ||
); |
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
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
Oops, something went wrong.