-
Notifications
You must be signed in to change notification settings - Fork 2
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
Hotfix - Flujos de trabajo - Error en fórmula del cálculo de mes #49
Conversation
Actions executed at: 2024-01-18 09:03:43. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(A)Probado
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En el código anterior, también se tenían en cuenta los tipos siguientes: 'double', 'uint', 'ulong', 'long', 'short' y 'tinyint'. Creo que deberían incluirse.
if (in_array($fieldType, ['float', 'decimal', 'currency', 'double', 'uint', 'ulong', 'long', 'short', 'tinyint'])) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(A)Probado
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(A)probado
Desarrollo del issue
Al crear un flujo de trabajo para que calcule el mes, con ceros a la izquierda, de un campo fecha, devuelve el mes sin dichos ceros.
Solución implementada de salesagility#10112:
Este código recorre en iteración una lista de fórmulas, calcula sus valores y los establece en los campos apropiados del objeto bean. Garantizando que los valores numéricos se almacenen en el tipo de datos correcto.
Pruebas