Openbravo Issue Tracking System - Localization Pack: Spain |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0045306 | Localization Pack: Spain | SII | public | 2020-10-27 12:18 | 2020-11-03 08:11 |
|
Reporter | Practics | |
Assigned To | Mery Anelo | |
Priority | urgent | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0045306: Proceso background falla si está configurado Alta en SII facturas de compra tras su contabilización |
Description | La consulta HQL no es capaz de ejecutarse cuando está marcado dicho check ya que se compara el campo posted (de la factura) como si fuera un Boolean cuando no lo es.
El problema está en la línea 300 del fichero SendInvoicesGroupsToAEAT.java. |
Steps To Reproduce | Configurar SII
Activar alta en SII facturas de compra tras su contabilización
Generar una factura de compra publicable a SII
Lanzar proceso background
Comprobar que el proceso falla con el siguiente error: org.hibernate.QueryException: Unable to render boolean literal value using expected LiteralType [ select i.id, i.documentNo, i.salesTransaction from Invoice i where i.aeatsiiIssent = false and i.organization.id = (:orgId) and i.processed = true and i.aeatsiiErrorRegistral = false and ( (i.salesTransaction = true and ((i.invoiceDate <= :todayMinusCadenceSales and i.invoiceDate >= :sinceSii) or (month(i.aeatsiiFechaOperacion) - month(DATE(:today)) = 0 and (i.invoiceDate < :today or (i.invoiceDate <= :dateLimitSII and i.invoiceDate > :salesLimitCadence and DATE(i.invoiceDate) = DATE(:today)) ) ) or (month(i.aeatsiiFechaOperacion) <> month(i.invoiceDate) and DATE(i.invoiceDate) = DATE(:today)) ) ) or (i.salesTransaction = false and i.posted = true and ((i.aeatsiiFechaRegCont <= :todayMinusCadencePurchase and i.aeatsiiFechaRegCont >= :sinceSii) or (month(i.aeatsiiFechaOperacion) - month(DATE(:today)) = 0 and (i.aeatsiiFechaRegCont < :today or (i.aeatsiiFechaRegCont <= :dateLimitSII and i.aeatsiiFechaRegCont > :purchaseLimitCadence and DATE(i.aeatsiiFechaRegCont) = DATE(:today)) ) ) ) or (month(i.aeatsiiFechaRegCont) <> month(i.aeatsiiFechaOperacion) and DATE(i.aeatsiiFechaRegCont) = DATE(:today)) ) ) ]
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-10-27 12:18 | Practics | New Issue | |
2020-10-27 12:18 | Practics | Assigned To | => Jorge Bravo |
2020-10-27 12:21 | Jorge Bravo | Assigned To | Jorge Bravo => Mery Anelo |
2020-10-29 03:16 | Mery Anelo | Status | new => scheduled |
2020-10-29 03:26 | Mery Anelo | Note Added: 0123982 | |
2020-10-29 03:48 | hgbot | Note Added: 0123983 | |
2020-11-03 08:11 | hgbot | Resolution | open => fixed |
2020-11-03 08:11 | hgbot | Status | scheduled => closed |
2020-11-03 08:11 | hgbot | Note Added: 0124111 | |
2020-11-03 08:11 | hgbot | Note Added: 0124112 | |