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

Incidencia - Flujos de trabajo - Formateo de hora en campos calculados que no usan funciones de fecha. #113

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

PaulaaSTIC
Copy link
Collaborator

Descripción

En los flujos de trabajo, al realizar una acción de campos calculados sin utilizar fórmulas para los campos de fecha y hora, estos se mostraban en el formato de base de datos en lugar de respetar el formato de hora del perfil de usuario. Por otro lado, si se utiliza alguna fórmula, como date(), en este proceso, la fecha se formatea correctamente. Esto llevaba a usar fórmulas que no realizaran ninguna operación {addHours(Y-m-d H:i:s;{P0};0)} para evitar errores.

Pruebas

  1. Crear un FdT en Sesiones que se ejecute "Al guardar" en "Todos los registros".
  2. En el FdT, agregar la acción "Campos calculados" con el nombre (P0) y el campo "fecha de inicio (P1)". Fórmula: {P0} {P1}.
  3. Comprobar que al guardar una Sesión, la descripción se rellena con la fecha en el formato correcto (el mismo que la fecha original).

Cambios realizados.

Se ha modificado la función resolveParameters($bean, $parameters, $parameterTypes) para que, si el tipo es datetimecombo, se realice un formateo de fecha. Anteriormente se pasaba como dato directamente la fecha de la base de datos sin formatear.

@PaulaaSTIC PaulaaSTIC added bug Something isn't working Flujos de trabajo labels Feb 12, 2024
@PaulaaSTIC PaulaaSTIC self-assigned this Feb 12, 2024
Copy link

github-actions bot commented Feb 12, 2024

Actions executed at: 2024-02-22 08:59:00.

@PaulaaSTIC PaulaaSTIC closed this Feb 12, 2024
@PaulaaSTIC PaulaaSTIC reopened this Feb 12, 2024
@AlbertoSTIC AlbertoSTIC requested review from ainaraRT and jordiSTIC and removed request for AlbertoSTIC February 13, 2024 09:41
ainaraRT
ainaraRT previously approved these changes Feb 13, 2024
Copy link
Collaborator

@ainaraRT ainaraRT left a comment

Choose a reason for hiding this comment

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

(A)Probado

Copy link
Collaborator

@ainaraRT ainaraRT left a comment

Choose a reason for hiding this comment

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

(A)Probado

Copy link
Collaborator

@jordiSTIC jordiSTIC left a comment

Choose a reason for hiding this comment

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

(A)Probado

@SinergiaCRM
Copy link
Collaborator

PR a SuiteCRM: salesagility#10628

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Flujos de trabajo
Projects
None yet
5 participants