Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 451,796
» Latest member: lipinnhkky
» Forum threads: 1,746
» Forum posts: 9,056

Full Statistics

Online Users
There are currently 321 online users.
» 3 Member(s) | 318 Guest(s)

Latest Threads
[RESUELTO] - Tipo de impu...
Forum: Administrator Support
Last Post: joebordes
Yesterday, 04:22 PM
» Replies: 18
» Views: 8,679
https://cardiavital-erfah...
Forum: Open Discussions
Last Post: bannerliam
Yesterday, 12:09 PM
» Replies: 0
» Views: 21
GENDOC imágenes
Forum: Open Discussions
Last Post: joebordes
05-16-2024, 09:58 AM
» Replies: 3
» Views: 66
How To Merge 10 Spreadshe...
Forum: Open Discussions
Last Post: stormbreaker
05-16-2024, 06:53 AM
» Replies: 1
» Views: 106
Workflow: función para ex...
Forum: User Support
Last Post: Joana
05-14-2024, 02:29 PM
» Replies: 4
» Views: 279
loadRelatedListBlock is n...
Forum: Administrator Support
Last Post: raavikant
05-11-2024, 11:57 AM
» Replies: 6
» Views: 2,766
Import a big spreasheet
Forum: Open Discussions
Last Post: raavikant
05-04-2024, 06:21 PM
» Replies: 2
» Views: 5,756
Workflow send email - mor...
Forum: Open Discussions
Last Post: frelanhardware091
05-04-2024, 12:12 PM
» Replies: 5
» Views: 9,603
Actualizar campo relacion...
Forum: User Support
Last Post: joebordes
05-02-2024, 07:48 PM
» Replies: 1
» Views: 97
PRODUCTS IN ACCOUNTS BY O...
Forum: User Support
Last Post: joebordes
05-02-2024, 11:28 AM
» Replies: 3
» Views: 486

 
  pt-br - module - reports
Posted by: rslemer - 04-07-2018, 09:38 PM - Forum: Administrator Support - Replies (1)

translate missing terms



Attached Files
.php   pt_br.lang.php (Size: 14.53 KB / Downloads: 1)
Print this item

  pt-br - module tooltips
Posted by: rslemer - 04-07-2018, 09:21 PM - Forum: Administrator Support - Replies (1)

Translate missing terms



Attached Files
.php   pt_br.lang.php (Size: 1.28 KB / Downloads: 1)
Print this item

  pt-br - module users
Posted by: rslemer - 04-07-2018, 09:12 PM - Forum: Administrator Support - Replies (1)

Translate missing terms

Changed "Organização" to "Conta"



Attached Files
.php   pt_br.lang.php (Size: 35.53 KB / Downloads: 1)
Print this item

  pt_br - include/js
Posted by: rslemer - 04-07-2018, 08:24 PM - Forum: Administrator Support - Replies (1)

Translate missing terms

Change "Organização" to "Conta"



Attached Files
.txt   pt_br.lang.js.txt (Size: 24.59 KB / Downloads: 1)
Print this item

  DASHBOARD
Posted by: flopezcpa - 04-07-2018, 12:12 PM - Forum: International - Replies (1)

Buenos dias, he notado que en el Dashboard, me muestra la cantidad de Cotizaciones Facturas, Cuentaz, etc, que tengo pero en una gráfica, al dar click sobre la gráfica me direcciona al listado, pero me muestra el listado vacio, que puede suceder?

Print this item

  Do we have an application-way of manipulating the related list columns?
Posted by: Guido1982 - 04-06-2018, 08:51 AM - Forum: Administrator Support - Replies (8)

I was just wondering (I searched the docs but couldn't find anything) if we have an application kind of way (like a business map or global variable) that would allow me to change the columns on the related lists. Use case: I'd like to show the serial no. in the related list for Assets without modifying the Assets.php file.

Print this item

  Migrating 'old style' custom validation to a Business Map validation
Posted by: Guido1982 - 04-06-2018, 07:10 AM - Forum: Administrator Support - Replies (15)

I want to migrate a validation I have in a custom validation file to a Business Map Validation. The validation I have now looks like this:

SalesOrderValidation.php

PHP Code:
<?php

global $log,$currentModule,$adb,$current_user;

$screen_values json_decode($_REQUEST['structure'],true);

$q "SELECT vtiger_groups.groupname FROM vtiger_groups INNER JOIN vtiger_users2group ON vtiger_groups.groupid = vtiger_users2group.groupid WHERE vtiger_users2group.userid = ?";
$p = array($current_user->id);
$r $adb->pquery($q$p);

$groups = array();

while (
$groupname $adb->fetch_array($r)) {
 
$groups[] = $groupname['groupname'];
}

$q "SELECT sostatus FROM vtiger_salesorder WHERE salesorderid = ?";
$p = array(vtlib_purify($screen_values['record']));
$r $adb->pquery($q$p);
$current_status $adb->query_result($r0'sostatus');

$q "SELECT vtiger_role.rolename FROM vtiger_role INNER JOIN vtiger_user2role ON vtiger_role.roleid = vtiger_user2role.roleid WHERE vtiger_user2role.userid = ?";
$p = array($current_user->id);
$r $adb->pquery($q$p);
$rolename $adb->query_result($r0'rolename');

if (!
in_array('Debiteurenadministratie'$groups) && $current_status == 'Wacht op betaling' && $screen_values['sostatus'] != 'Wacht op betaling') {
 echo 
'U mag de status niet van \'Wacht op betaling\' af halen'// Translation: You are not allowed to change the status from 'Wacht op betaling' to anything else
 
die();
} else if (
$rolename != 'Directeur' && $screen_values['sostatus'] == 'Cancelled' && $current_status != 'Cancelled') {
 echo 
'U mag deze order niet annuleren, alleen de Directeur mag dat'// Translation: You are not allowed to cancel an order, only the CEO is.
 
die();
}

echo 
'%%%OK%%%'

This basically checks the user's role and group to see what they can and cannot do to specific SalesOrder statuses. Now I want to migrate this to a Busines map validation. I was thinking along these lines:

Business Map
Code:
<map>
 <originmodule>
   <originname>SalesOrder</originname>
 </originmodule>
 <fields>
   <field>
     <fieldname>sostatus</fieldname>
     <validations>
       <validation>
         <rule>custom</rule>
         <restrictions>
         <restriction>modules/SalesOrder/ValidateStatus.php</restriction>
         <restriction>check_sostatus_permissions</restriction>
         <restriction>validate_sostatus_permissions</restriction>
         </restrictions>
       </validation>
     </validations>
   </field>
 </fields>
</map>

modules/SalesOrder/ValidateStatus.php

PHP Code:
<?php

function validate_sostatus_permissions() {

global 
$log,$currentModule,$adb,$current_user;

$screen_values json_decode($_REQUEST['structure'],true);

$q "SELECT vtiger_groups.groupname FROM vtiger_groups INNER JOIN vtiger_users2group ON vtiger_groups.groupid = vtiger_users2group.groupid WHERE vtiger_users2group.userid = ?";
$p = array($current_user->id);
$r $adb->pquery($q$p);

$groups = array();

while (
$groupname $adb->fetch_array($r)) {
 
$groups[] = $groupname['groupname'];
}

$q "SELECT sostatus FROM vtiger_salesorder WHERE salesorderid = ?";
$p = array(vtlib_purify($screen_values['record']));
$r $adb->pquery($q$p);
$current_status $adb->query_result($r0'sostatus');

$q "SELECT vtiger_role.rolename FROM vtiger_role INNER JOIN vtiger_user2role ON vtiger_role.roleid = vtiger_user2role.roleid WHERE vtiger_user2role.userid = ?";
$p = array($current_user->id);
$r $adb->pquery($q$p);
$rolename $adb->query_result($r0'rolename');

if (!
in_array('Debiteurenadministratie'$groups) && $current_status == 'Wacht op betaling' && $screen_values['sostatus'] != 'Wacht op betaling') {
 return 
'U mag de status niet van \'Wacht op betaling\' af halen'// Translation: You are not allowed to change the status from 'Wacht op betaling' to anything else
 
die();
} else if (
$rolename != 'Directeur' && $screen_values['sostatus'] == 'Cancelled' && $current_status != 'Cancelled') {
 return 
'U mag deze order niet annuleren, alleen de Directeur mag dat'// Translation: You are not allowed to cancel an order, only the CEO is.
 
die();
}

return 
true;


My questions
  • Do I have the same 'screen_values' array at my disposal?
  • Am I correct to transform my "echo's" into "returns" and expect it to work?
  • Am I doing something else terribly wrong?

Print this item

  no se asignan registros a contacts
Posted by: construmet4 - 04-05-2018, 08:42 AM - Forum: User Support - Replies (13)

Buenos días:

ME encuentro con el siguiente problema:

Cuando creo una llamada que realiza un contacto registrado, esa llamada introducida, no se ve como llamada asignada en la ficha de "contacts" en el apartado de más información del módulo, no aparece el registro relacionado en la base de datos donde sí que está relacionada la id del contact al que pertenece esa llamada ¿Qué puede estar pasando?

En la base de datos del registro relacionado con el Modulo LlamadasRecibidas, se registra de esta manera:

Tabla de LlamasRecibidas

   

En la tabla, describo los campos:

llamadarecibidaid=Id único del registro de la llamada
cf_856= Assigned to
cf_857= Asunto
cf_858 = Si está gestionada o no
cf_589 = Contact al que pertenece

Entiendo que si en la tabla de vtiger_contactdetails tiene el mismo número de contactid que el que aparece en el cf_589, automáticamente estarían relacionados para que aparecieran en la información adicional? del módulo contacts
?

Alguna idea de lo que puede estar pasando? o si hay alguna tabla que vincule los registros a parte?
Será por el nombre que tienen los campos en las tablas de LlamadasRecibidas?

Print this item

  configurar plantilla email
Posted by: construmet4 - 04-05-2018, 06:04 AM - Forum: User Support - Replies (1)

Buenos días a todos Big Grin

Necesitaría algo de ayuda para configurar un email informativo que envíe información de un módulo personalizado que he creado.

Lo que necesito es que el email sea enviado a el correo electrónico al email del grupo "Assigned to" y al email de la cuenta "Account" del "record_id" del módulo creado llamado LlamadaRecibida. Como asunto del mensaje, necesito que se envíe La fecha y la hora de creación, el asunto,

¿Cómo puedo crear el template del email para utilizarlo en un workflow para que cada vez que se guarde un nuevo registro sea enviado dicho email?

He podido ver que en el módulo de confeccionar un email, puedo elegir algunos módulos que tiene por defecto, pero no se cómo puedo incluir los módulos que me interesan a fin de conseguir los datos que necesito

Muchas gracias por vuestra ayuda

Print this item

  Importar contactos
Posted by: construmet4 - 04-04-2018, 11:22 AM - Forum: User Support - Replies (2)

Buenos días:

Estoy muy cerca de poner en marcha en producción corebos, pero me hace falta saber si existe alguna forma de importar masivamente contacts, y asignarlos en la importación a cuentas y usuarios. ¿Alguna sugerencia? también me iría bien conocer un modelo de csv para confeccionarlo tal y como ha de ser para importar todos los registros. Muchas gracias

Muchas gracias

Print this item