Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - SMS - Integración inicial del plugin de Seven para el envío de SMS #182

Open
wants to merge 118 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
34ec152
Initial commit
enricsinergia Apr 2, 2024
1702d1f
missing file
enricsinergia Apr 2, 2024
a9bd901
add panel to views
enricsinergia Apr 2, 2024
5071205
add panel to views
enricsinergia Apr 2, 2024
524d77b
Merge branch 'feature/sevenSmsModules' of github.com:SinergiaTIC/Sine…
enricsinergia Apr 2, 2024
a76040b
restoring seven files instead of Stic
enricsinergia Apr 2, 2024
a5898df
move Account literals to seven specific files
enricsinergia Apr 3, 2024
8f920bf
move Contact literals to seven specific files
enricsinergia Apr 3, 2024
e152199
move Employee literals to seven specific file
enricsinergia Apr 3, 2024
a38f2f5
move Leads literals to seven specific file
enricsinergia Apr 3, 2024
653f563
Move Administration literals to seven specific file
enricsinergia Apr 3, 2024
65864c9
rename administration file
enricsinergia Apr 3, 2024
ae9c1fb
rename AOW_Actions Lang files
enricsinergia Apr 3, 2024
5a40d54
email template used instead of text on sending SMS fromWK action and/…
enricsinergia Apr 9, 2024
3def7b3
Messages Module
enricsinergia May 9, 2024
fff55e6
Show stic_messages on Contact's subpanel
enricsinergia Jun 13, 2024
7648f48
merge conflicts
enricsinergia Jun 13, 2024
b6f0875
Adding modal window (WIP)
enricsinergia Jul 8, 2024
b1ec816
Using screen text (from template or not) to generate definitive text …
enricsinergia Jul 8, 2024
d39c967
Using screen text (from template or not) to generate definitive text …
enricsinergia Jul 8, 2024
27170f4
Minor changes on compose & edit views
enricsinergia Jul 9, 2024
c6c360d
Retrieving phone when parent changed or added
enricsinergia Jul 9, 2024
a205bae
getting parent phone
enricsinergia Jul 9, 2024
b777d01
cleaning....
enricsinergia Jul 9, 2024
ec9d3ee
SugarWidget created to create messages renamed
enricsinergia Jul 10, 2024
94ac0ac
Hide leftover buttons on modal view
enricsinergia Jul 10, 2024
a1c21e7
Loading js via JSGrouping instead of view.detail.php
enricsinergia Jul 10, 2024
e0539f9
Phone also filled on accounts pop-up
enricsinergia Jul 10, 2024
3bf5b80
Added Mesages to Accounts
enricsinergia Jul 11, 2024
8b6bc63
Refactoring Seven configuration
enricsinergia Jul 11, 2024
38eedd3
Cleaning...
enricsinergia Jul 11, 2024
a4459cd
Cleaning...
enricsinergia Jul 11, 2024
cb84590
Seven popup removed and compose view used instead
enricsinergia Jul 12, 2024
52cecf3
Added mass send messages to Contacts
enricsinergia Jul 17, 2024
2fbaaa2
Removed extra buttons from pop-up
enricsinergia Jul 17, 2024
7638ede
Merge branch 'develop' into feature/sevenSmsModules
enricsinergia Jul 17, 2024
cd291cc
Mass send on contact and minor corrections
enricsinergia Jul 19, 2024
d082462
Removing seven plugin
enricsinergia Jul 19, 2024
5835f83
Supress workflow action. Substituted by std action: create record (st…
enricsinergia Jul 19, 2024
6332889
New EMailTemplate type
enricsinergia Jul 22, 2024
cb603da
Cleaning and adding functionality to accounts, leads and employees
enricsinergia Jul 23, 2024
be5e50e
Show icon
enricsinergia Jul 23, 2024
939b9d1
Show icon at phone fields
enricsinergia Jul 24, 2024
84ddfc7
Field status
enricsinergia Jul 25, 2024
01680b9
Preparation to allow other message providers
enricsinergia Jul 25, 2024
8ccef5c
Hide html section on EmailTEmplates detail view when only text checke…
enricsinergia Jul 25, 2024
648dc79
Managing return errors and draft messages
enricsinergia Jul 25, 2024
f89e516
Cleaning the modal
enricsinergia Jul 29, 2024
0b21656
status can only be edited when in draft
enricsinergia Jul 29, 2024
ba694f3
Detction of detailview improved
enricsinergia Jul 29, 2024
0c603b7
Hiding parent when in bulk action
enricsinergia Jul 29, 2024
c1dd186
Retry action
enricsinergia Jul 30, 2024
4143a9c
Limiting parent type list & status mass update forbidden
enricsinergia Jul 30, 2024
82cc9b6
JS loaded only on interested modules and not through JSGrouping
enricsinergia Jul 30, 2024
6819c53
Config parameters on stic settings
enricsinergia Jul 30, 2024
1047da3
Feature must be disabled by default
enricsinergia Jul 30, 2024
51cefd9
Minor correction
enricsinergia Jul 30, 2024
d15f098
Message icon is only showed at Contacts & cia if the module is enabled
enricsinergia Jul 30, 2024
10fdf55
Delete Seven configuration section
enricsinergia Jul 31, 2024
0ed4435
Cleaning
enricsinergia Jul 31, 2024
80ab8b8
Supress seven modules
enricsinergia Jul 31, 2024
8664199
Cleaning seven modules
enricsinergia Jul 31, 2024
2a00251
Cleaning
enricsinergia Jul 31, 2024
65baa32
Cleaning email residues
enricsinergia Jul 31, 2024
9750b15
Button to create message hidden if module not active
enricsinergia Aug 1, 2024
d590ada
Helper interface defined
enricsinergia Aug 1, 2024
6155eb5
Set limit to number of messages on bulk actions
enricsinergia Aug 1, 2024
3957a86
Cleaning view.list on contacts, Accounts, ....
enricsinergia Aug 2, 2024
d48cc7f
Bulk button centralized + configurable number of messages
enricsinergia Aug 2, 2024
1f13bc1
Added trait to detail views, so they also have the getMessagesLimit f…
enricsinergia Sep 2, 2024
86a48ee
Get correct default sender
enricsinergia Sep 3, 2024
d470118
check if namesList is defined (only exists on mass send)
enricsinergia Sep 3, 2024
e74618b
Workflow action added
enricsinergia Sep 9, 2024
8826715
Setting corrected
enricsinergia Sep 9, 2024
680506f
get_stic_messages function relocated
enricsinergia Sep 9, 2024
7613996
INSERT vs REPLACE
enricsinergia Sep 9, 2024
780e56c
Minor changes
enricsinergia Sep 9, 2024
5fa79c4
Minor corrections
enricsinergia Sep 9, 2024
d2265b6
Minor correction & cleanup
enricsinergia Sep 9, 2024
a7c6021
Changing email to phone where appropiate
enricsinergia Sep 9, 2024
cbbaae4
Setting name corrected
enricsinergia Sep 9, 2024
2571ed9
Minor fixes & cleanup
enricsinergia Sep 10, 2024
1ef1f6e
Minor fix
enricsinergia Sep 11, 2024
e7e80ec
Comments added
enricsinergia Sep 13, 2024
403b21f
Reverting unnecessary change
enricsinergia Sep 13, 2024
ffe8293
Clean up
enricsinergia Sep 13, 2024
fc1a317
Reverting unnecessary change
enricsinergia Sep 13, 2024
cd62502
Reverting unnecessary change
enricsinergia Sep 13, 2024
e03de1e
Clean up
enricsinergia Sep 13, 2024
b3dd22a
Encapsulating functions into a class to avoid names collision
enricsinergia Sep 13, 2024
3f4fb85
Clean up
enricsinergia Sep 18, 2024
9f38a58
Additional details reviewed
enricsinergia Sep 18, 2024
91a162d
Mass send
enricsinergia Sep 26, 2024
025a807
License review & cleanup
enricsinergia Sep 26, 2024
b132a24
Removed incorrect file
enricsinergia Sep 26, 2024
7631e09
Removing global variable
enricsinergia Sep 27, 2024
3782f02
Removing incorrect file
enricsinergia Sep 27, 2024
d592608
Merge develop
enricsinergia Sep 27, 2024
7ce58e7
Minor fix
enricsinergia Sep 27, 2024
92189f0
Icons updated
enricsinergia Sep 27, 2024
1fe19f7
Icons updated
enricsinergia Sep 27, 2024
11f0a21
Merge branch 'feature/sevenSmsModules' of github.com:SinergiaTIC/Sine…
enricsinergia Sep 27, 2024
37c5cdd
Corrected file name
enricsinergia Sep 27, 2024
453b168
JS debugger suppressed
enricsinergia Sep 27, 2024
611e730
Revert file
enricsinergia Sep 27, 2024
08e04db
Parent_type on mass sends was being lost
enricsinergia Oct 4, 2024
30d0160
Compose view is no longer called with GET but with POST
enricsinergia Oct 4, 2024
a720034
Minor correction
enricsinergia Oct 4, 2024
edeb6f0
Minor corrections
enricsinergia Oct 4, 2024
01cf595
Minor correction
enricsinergia Oct 4, 2024
d5a491e
Moved function from trait to Utils
enricsinergia Oct 17, 2024
2b17d2e
Merge branch 'develop' into feature/sevenSmsModules
enricsinergia Oct 28, 2024
aa28c60
remove of check_STic_messages requires
enricsinergia Oct 28, 2024
4b1c9b6
Action rename: from createMessage to sendMEssage
enricsinergia Oct 31, 2024
9a61e29
Comments added to utils functions
enricsinergia Oct 31, 2024
674d907
Error corrections
enricsinergia Nov 11, 2024
0e470c5
Error correction
enricsinergia Nov 11, 2024
e23a427
Error correction
enricsinergia Nov 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SticInclude/js/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ function viewType() {
return "list";
} else if ($(".sub-panel .quickcreate form").length == 1) {
return "quickcreate";
} else if ($(".detail-view").length == 1) {
} else if ($(".detail-view").length == 1 || $("form[name=DetailView]").length == 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¿En que casos se ha detectado que se debería ampliar la condición para la vista de detalle? Estas condiciones se llevan utilizando así desde hace tiempo en diferentes procesos y no hasta ahora no ha sido necesario.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si no me equivoco es en EmailTemplates. La vista detail se construye sin tpl y no sigue el estándar habitual.

return "detail";
} else if ($("form[name=EditView]").length == 1) {
return "edit";
Expand Down
6 changes: 5 additions & 1 deletion SticInstall/sql/ca/Settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ INSERT INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_us
('3cbabeae-f992-4958-955b-1a0cd4300dc8', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TERMINAL', '3', 'Nombre de terminal, proporcionat per la passarel·la de pagament (normalment el número 3). Disponible a l''aplicació web del TPV CECA (https://comercios.ceca.es/).'),
('d72a1bc8-c20b-49b6-a970-0ff37178b9d5', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TEST', '1', 'Indica el mode de treball (0 = Real, 1 = Test).'),
('78e895d4-b528-7392-5e83-66347f276649', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_LOWER_MARGIN_PERCENT', '20', "Indica el percentatge d'hores treballades de menys (respecte de l'horari teòric setmanal) que farà que s'enviï una alerta."),
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', "Indica el percentatge d'hores treballades de més (respecte de l'horari teòric setmanal) que farà que s'enviï una alerta.");
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', "Indica el percentatge d'hores treballades de més (respecte de l'horari teòric setmanal) que farà que s'enviï una alerta."),
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 indica que no s'han d'enviar missatges. 1 indica que s'han d'enviar missatges."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Clau per connectar amb Seven. S'obté al panell de control de Seven."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ORGANITZACIÓ>', "Nom que apareixerà com a remitent en els missatges enviats"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Nombre màxim de missatges permesos en enviament massiu");
6 changes: 5 additions & 1 deletion SticInstall/sql/en/Settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ INSERT INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_us
('3cbabeae-f992-4958-955b-1a0cd4300dc8', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TERMINAL', '3', 'Terminal number, provided by the payment gateway (usually number 3). Available on the TPV CECA web application (https://comercios.ceca.es/).'),
('d72a1bc8-c20b-49b6-a970-0ff37178b9d5', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TEST', '1', 'Indicates the working mode (0 = Real, 1 = Test).'),
('78e895d4-b528-7392-5e83-66347f276649', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_LOWER_MARGIN_PERCENT', '20', 'Indicates the percentage of hours worked less (with respect to the theoretical weekly schedule) that will cause an alert to be sent.'),
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', 'Indicates the percentage of hours worked in excess (with respect to the theoretical weekly schedule) that will cause an alert to be sent.');
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', 'Indicates the percentage of hours worked in excess (with respect to the theoretical weekly schedule) that will cause an alert to be sent.'),
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 means no messages will be sent. 1 means that messages will be sent."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Key to connect with SEVEN. It is generated at Seven dashboard."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ACCOUNT>', "Sender name that will be shown on messages sent"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Max number of messages allowed on bulk send");
6 changes: 5 additions & 1 deletion SticInstall/sql/es/Settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ INSERT INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_us
('3cbabeae-f992-4958-955b-1a0cd4300dc8', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TERMINAL', '3', 'Número de terminal, proporcionado por la pasarela de pago (usualmente el número 3). Disponible en la aplicación web del TPV CECA (https://comercios.ceca.es/)'),
('d72a1bc8-c20b-49b6-a970-0ff37178b9d5', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TEST', '1', 'Indica el modo de trabajo (0 = Real, 1 = Test).'),
('78e895d4-b528-7392-5e83-66347f276649', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_LOWER_MARGIN_PERCENT', '20', 'Indica el porcentaje de horas trabajadas de menos (respecto del horario teórico semanal) que hará que se envíe una alerta.'),
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', 'Indica el porcentaje de horas trabajadas de más (respecto del horario teórico semanal) que hará que se envíe una alerta.');
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', 'Indica el porcentaje de horas trabajadas de más (respecto del horario teórico semanal) que hará que se envíe una alerta.'),
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 indica que no se enviarán mensajes. 1 indica que s´q se enviarán mensajes."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Clave para conectar con Seven. Se obtiene en el panel de control de Seven."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ORGANIZACIÓN>', "Nombre que aparecerá como remitente en los mensajes enviados"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Número máximo de mensajes permitidos en envío masivo");
6 changes: 5 additions & 1 deletion SticInstall/sql/gl/Settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ INSERT INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_us
('3cbabeae-f992-4958-955b-1a0cd4300dc8', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TERMINAL', '3', 'Número de terminal, proporcionado por la pasarela de pago (usualmente el número 3). Disponible en la aplicación web del TPV CECA (https://comercios.ceca.es/)'),
('d72a1bc8-c20b-49b6-a970-0ff37178b9d5', NOW(), NOW(), '1', '1', 0, '1', 'TPVCECA', 'TPVCECA_TEST', '1', 'Indica el modo de trabajo (0 = Real, 1 = Test).'),
('78e895d4-b528-7392-5e83-66347f276649', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_LOWER_MARGIN_PERCENT', '20', 'Indica el porcentaje de horas trabajadas de menos (respecto del horario teórico semanal) que hará que se envíe una alerta.'),
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', 'Indica el porcentaje de horas trabajadas de más (respecto del horario teórico semanal) que hará que se envíe una alerta.');
('6ac2d1e7-ff90-61f0-85c2-66347f0d8311', NOW(), NOW(), '1', '1', 0, '1', 'TIMETRACKER', 'TIMETRACKER_UPPER_MARGIN_PERCENT', '20', 'Indica el porcentaje de horas trabajadas de más (respecto del horario teórico semanal) que hará que se envíe una alerta.'),
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 indica que no se enviarán mensajes. 1 indica que s´q se enviarán mensajes."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Clave para conectar con Seven. Se obtiene en el panel de control de Seven."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ORGANIZACIÓN>', "Nombre que aparecerá como remitente en los mensajes enviados"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Número máximo de mensajes permitidos en envío masivo");
6 changes: 6 additions & 0 deletions SticUpdates/Migrations/ca/20240730_feature_sms.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REPLACE INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `deleted`, `assigned_user_id`, `type`, `name`, `value`, `description`) VALUES
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 indica que no s'han d'enviar missatges. 1 indica que s'han d'enviar missatges."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Clau per connectar amb Seven. S'obté al panell de control de Seven."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ORGANITZACIÓ>', "Nom que apareixerà com a remitent en els missatges enviats"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Nombre màxim de missatges permesos en enviament massiu");

6 changes: 6 additions & 0 deletions SticUpdates/Migrations/en/20240730_feature_sms.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REPLACE INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `deleted`, `assigned_user_id`, `type`, `name`, `value`, `description`) VALUES
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 means no messages will be sent. 1 means that messages will be sent."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Key to connect with SEVEN. It is generated at Seven dashboard."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ACCOUNT>', "Sender name that will be shown on messages sent"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Max number of messages allowed on bulk send");

5 changes: 5 additions & 0 deletions SticUpdates/Migrations/es/20240730_feature_sms.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
REPLACE INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `deleted`, `assigned_user_id`, `type`, `name`, `value`, `description`) VALUES
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 indica que no se enviarán mensajes. 1 indica que s´q se enviarán mensajes."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Clave para conectar con Seven. Se obtiene en el panel de control de Seven."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ORGANIZACIÓN>', "Nombre que aparecerá como remitente en los mensajes enviados"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Número máximo de mensajes permitidos en envío masivo");
5 changes: 5 additions & 0 deletions SticUpdates/Migrations/gl/20240730_feature_sms.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
REPLACE INTO `stic_settings` (`id`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `deleted`, `assigned_user_id`, `type`, `name`, `value`, `description`) VALUES
('652c33e1-522e-4f06-8a66-755d05a318e6', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_ACTIVE', '0', "0 indica que no se enviarán mensajes. 1 indica que s´q se enviarán mensajes."),
('d9f0118c-b752-444d-9057-456b18f9f360', NOW(), NOW(), '1', '1', 0, '1', 'SEVEN', 'SEVEN_API_KEY', 'XXXXX', "Clave para conectar con Seven. Se obtiene en el panel de control de Seven."),
('c8d720bd-2c7b-47a6-98ce-9664529559ca', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_SENDER', '<ORGANIZACIÓN>', "Nombre que aparecerá como remitente en los mensajes enviados"),
('64b1554a-cf95-423b-ae78-7f75951f3976', NOW(), NOW(), '1', '1', 0, '1', 'MESSAGES', 'MESSAGES_LIMIT', '100', "Número máximo de mensajes permitidos en envío masivo");
3 changes: 3 additions & 0 deletions custom/Extension/application/Ext/Include/SticModules.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
$moduleList[] = 'stic_Training';
$moduleList[] = 'stic_Work_Experience';
$moduleList[] = 'stic_Skills';
$moduleList[] = 'stic_Messages';
$moduleList[] = 'stic_Custom_Views';
$moduleList[] = 'stic_Custom_View_Customizations';
$moduleList[] = 'stic_Custom_View_Conditions';
Expand Down Expand Up @@ -108,6 +109,7 @@
$beanList['stic_Training'] = 'stic_Training';
$beanList['stic_Work_Experience'] = 'stic_Work_Experience';
$beanList['stic_Skills'] = 'stic_Skills';
$beanList['stic_Messages'] = 'stic_Messages';
$beanList['stic_Custom_Views'] = 'stic_Custom_Views';
$beanList['stic_Custom_View_Customizations'] = 'stic_Custom_View_Customizations';
$beanList['stic_Custom_View_Conditions'] = 'stic_Custom_View_Conditions';
Expand Down Expand Up @@ -154,6 +156,7 @@
$beanFiles['stic_Training'] = 'modules/stic_Training/stic_Training.php';
$beanFiles['stic_Work_Experience'] = 'modules/stic_Work_Experience/stic_Work_Experience.php';
$beanFiles['stic_Skills'] = 'modules/stic_Skills/stic_Skills.php';
$beanFiles['stic_Messages'] = 'modules/stic_Messages/stic_Messages.php';
$beanFiles['stic_Custom_Views'] = 'modules/stic_Custom_Views/stic_Custom_Views.php';
$beanFiles['stic_Custom_View_Customizations'] = 'modules/stic_Custom_View_Customizations/stic_Custom_View_Customizations.php';
$beanFiles['stic_Custom_View_Conditions'] = 'modules/stic_Custom_View_Conditions/stic_Custom_View_Conditions.php';
Expand Down
47 changes: 47 additions & 0 deletions custom/Extension/application/Ext/Language/ca_ES.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
$app_strings['LBL_STIC_VIDEOS_LINK'] = 'Vídeos de SinergiaCRM';
$app_strings['LBL_STIC_SINERGIADA'] = 'SinergiaDA';

// Missatges: accions subpanell
$app_strings['LBL_SUBPANEL_NEW_MESSAGE_TITLE'] = 'Nou Missatge';
$app_strings['LBL_SUBPANEL_NEW_MESSAGE_LABEL'] = 'Nou Missatge';
$app_strings['LBL_CONFIRM_APPLY_MESSAGES_TEMPLATE_BODY'] = 'Aquesta operació esborrarà el contingut del missatge, ¿vol continuar?';
$app_strings['LBL_TOO_MANY_RECORDS_SELECTED'] = 'Sobrepassat el límit de missatges a enviar simultàniament';
$app_strings['LBL_MASS_SENT_MESSAGE_BUTTON_TITTLE'] = 'Nou missatge';


// Mòduls propis de SinergiaCRM i mòduls de SuiteCRM reanomenats
$app_list_strings['moduleList']['Accounts'] = 'Organitzacions';
$app_list_strings['moduleList']['Contacts'] = 'Persones';
Expand Down Expand Up @@ -128,6 +136,7 @@
$app_list_strings['moduleList']['stic_Training'] = 'Formació';
$app_list_strings['moduleList']['stic_Work_Experience'] = 'Experiència laboral';
$app_list_strings['moduleList']['stic_Skills'] = 'Competències';
$app_list_strings['moduleList']['stic_Messages'] = 'Missatges';
$app_list_strings['moduleList']['stic_Custom_Views'] = 'Vistes personalitzades';
$app_list_strings['moduleList']['stic_Custom_View_Actions'] = 'Accions';
$app_list_strings['moduleList']['stic_Custom_View_Customizations'] = 'Personalitzacions';
Expand Down Expand Up @@ -174,6 +183,7 @@
$app_list_strings['moduleListSingular']['stic_Training'] = 'Formació';
$app_list_strings['moduleListSingular']['stic_Work_Experience'] = 'Experiència laboral';
$app_list_strings['moduleListSingular']['stic_Skills'] = 'Competència';
$app_list_strings['moduleListSingular']['stic_Messages'] = 'Missatge';
$app_list_strings['moduleListSingular']['stic_Custom_Views'] = 'Vista personalitzada';
$app_list_strings['moduleListSingular']['stic_Custom_View_Actions'] = 'Acció';
$app_list_strings['moduleListSingular']['stic_Custom_View_Customizations'] = 'Personalització';
Expand Down Expand Up @@ -216,6 +226,7 @@
$app_list_strings['parent_type_display']['stic_Training'] = 'Formació';
$app_list_strings['parent_type_display']['stic_Work_Experience'] = 'Experiència laboral';
$app_list_strings['parent_type_display']['stic_Skills'] = 'Competències';
$app_list_strings['parent_type_display']['stic_Messages'] = 'Missatges';
$app_list_strings['parent_type_display']['stic_Group_Opportunities'] = 'Organitzacions subvencionades';

$app_list_strings['record_type_display']['Accounts'] = 'Organitzacions';
Expand Down Expand Up @@ -255,6 +266,7 @@
$app_list_strings['record_type_display']['stic_Training'] = 'Formació';
$app_list_strings['record_type_display']['stic_Work_Experience'] = 'Experiència laboral';
$app_list_strings['record_type_display']['stic_Skills'] = 'Competències';
$app_list_strings['record_type_display']['stic_Messages'] = 'Missatges';
$app_list_strings['record_type_display']['stic_Group_Opportunities'] = 'Organitzacions subvencionades';

$app_list_strings['record_type_display_notes']['Accounts'] = 'Organitzacions';
Expand Down Expand Up @@ -294,6 +306,7 @@
$app_list_strings['record_type_display_notes']['stic_Training'] = 'Formació';
$app_list_strings['record_type_display_notes']['stic_Work_Experience'] = 'Experiència laboral';
$app_list_strings['record_type_display_notes']['stic_Skills'] = 'Competències';
$app_list_strings['record_type_display_notes']['stic_Messages'] = 'Missatges';
$app_list_strings['record_type_display_notes']['stic_Group_Opportunities'] = 'Organitzacions subvencionades';

$app_list_strings['parent_type_display_notifications']['Opportunities'] = 'Subvencions';
Expand Down Expand Up @@ -3448,6 +3461,24 @@
$app_list_strings['stic_skills_language_certificates_list']['german_goethe'] = 'GZ - Goethe-Zertifikat';
$app_list_strings['stic_skills_language_certificates_list']['chinese_hsk'] = 'HSK - Hanyu Shuiping Kaoshi';

// Missatges: Tipus
$app_list_strings['stic_messages_type_list']['SevenSmsHelper'] = 'SMS';

// Missatges: Direcció
$app_list_strings['stic_messages_direction_list']['inbound'] = 'Entrada';
$app_list_strings['stic_messages_direction_list']['outbound'] = 'Sortida';

// Missatges: Status
$app_list_strings['stic_messages_status_list']['sent'] = 'Enviat';
$app_list_strings['stic_messages_status_list']['error'] = 'Error';
$app_list_strings['stic_messages_status_list']['draft'] = 'Esborrany';

// Missatges: Parent types
$app_list_strings['stic_messages_parent_type_display']['Accounts'] = 'Organitzacions';
$app_list_strings['stic_messages_parent_type_display']['Contacts'] = 'Persones';
$app_list_strings['stic_messages_parent_type_display']['Leads'] = 'Interessats';
$app_list_strings['stic_messages_parent_type_display']['Employees'] = 'Empleats';

// Vistes personalitzades: Tipus d'usuari
$app_list_strings['stic_custom_views_user_type_list']['regular_user'] = 'Usuari regular';
$app_list_strings['stic_custom_views_user_type_list']['administrator'] = 'Administrador';
Expand Down Expand Up @@ -3595,6 +3626,13 @@
$app_list_strings['aow_date_type_list']['year'] = 'Anys'; // New STIC item
$app_list_strings['aow_date_type_list']['business_hours'] = 'Horari laboral';

// Fluxos de treball: destinataris de missatges
$app_list_strings['aow_message_type_list']['Phone'] = 'Telèfon';
$app_list_strings['aow_message_type_list']['Record Phone'] = 'Telèfon del registre';
$app_list_strings['aow_message_type_list']['Related Field'] = 'Camp relacionat';
$app_list_strings['aow_message_type_list']['Specify User'] = 'Usuari';
$app_list_strings['aow_message_type_list']['Users'] = 'Usuaris';

// Mapes: llistes adaptades
$app_list_strings['map_module_type_list']['Accounts'] = 'Organitzacions';
$app_list_strings['map_module_type_list']['Contacts'] = 'Persones';
Expand Down Expand Up @@ -3633,3 +3671,12 @@
$app_list_strings['emailTemplates_type_list_no_workflow']['email'] = 'Correu electrònic';
$app_list_strings['emailTemplates_type_list_no_workflow']['event'] = 'Esdeveniment';
$app_list_strings['emailTemplates_type_list_no_workflow']['system'] = 'Sistema';
$app_list_strings['emailTemplates_type_list_no_workflow']['sms'] = 'SMS';
// Plantilles de Correu electrònic: Tipus de plantilla
$app_list_strings['emailTemplates_type_list'][''] = '';
$app_list_strings['emailTemplates_type_list']['campaign'] = 'Campanya';
$app_list_strings['emailTemplates_type_list']['notification'] = 'Notificació';
$app_list_strings['emailTemplates_type_list']['email'] = 'Correu electrònic';
$app_list_strings['emailTemplates_type_list']['event'] = 'Esdeveniment';
$app_list_strings['emailTemplates_type_list']['system'] = 'Sistema';
$app_list_strings['emailTemplates_type_list']['sms'] = 'SMS';
Loading
Loading