Openbravo Issue Tracking System - Localization Pack: Spain | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0057688 | Localization Pack: Spain | Taxes Cash VAT | public | 2025-01-20 09:26 | 2025-01-20 10:57 | ||||||||
Reporter | vmromanos | ||||||||||||
Assigned To | vmromanos | ||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||
Status | scheduled | Resolution | open | ||||||||||
Platform | OS | 5 | OS Version | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Merge Request Status | |||||||||||||
Regression date | 2023-08-28 | ||||||||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/openbravo/-/merge_requests/943/diffs#dfcb656b875809f030e107076a23f4200f634fb3_152_152 [^] | ||||||||||||
Regression level | Production - Confirmed Stable | ||||||||||||
Review Assigned To | |||||||||||||
Support ticket | |||||||||||||
OBNetwork customer | |||||||||||||
Regression introduced in release | |||||||||||||
Summary | 0057688: es_ES Cash VAT dataset can't be applied into a fresh instance | ||||||||||||
Description | In 0052639 a new mandatory column (VALUE) was added with an onCreateDefault = NAME. However, the es_ES Cash VAT dataset wasn't adapted accordingly. Therefore, if you try to apply this dataset in a fresh instance after 0052639, it will fail because this dataset doesn't have the VALUE in the XML file. | ||||||||||||
Steps To Reproduce | In master, install the es_ES Cash VAT module. As System Admin, go to Initial Client Setup, fill the mandatory fields. Select the es_ES Taxes datasets (normal and Cash VAT version). Try to create the client. Several errors are thrown. Example: ERROR org.hibernate.engine.jdbc.batch.internal.BatchingBatch - HHH000315: Exception executing batch [java.sql.BatchUpdateException: Batch entry 0 insert into C_Tax (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, Name, UpdatedBy, Description, ValidFrom, IsSummary, Rate, C_TaxCategory_ID, IsDefault, IsTaxExempt, SOPOType, Cascade, C_BP_TaxCategory_ID, Line, IsWithholdingTax, IsNoTaxable, IsTaxUndeductable, IsTaxDeductable, IsNoVAT, BaseAmount, DocTaxAmount, IsCashVAT, EM_Obspti_Isreversecharge, EM_OBSPTI_IsEquivalentCharge, EM_Obspti_Isintracommunity, EM_Obspti_Islease, EM_Obspti_Isrealestate, EM_Obspti_Reagyp, EM_Obspti_Isrebu, EM_Obspti_Isexport, EM_Obspti_Isimplicitcharge, C_Tax_ID) values (('03984EBF3CBB4FBDA84635B5237EAAAF'), ('0'), ('Y'), ('2025-01-17 14:27:31.946+01'), ('100'), ('2025-01-17 14:27:31.946+01'), ('Arrendamientos 21% -19%R (cobros) IVA de Caja'), ('100'), ('Arrendamientos 21% -19%R (cobros) IVA de Caja'), ('2016-01-01 00:00:00+01'), ('Y'), ('21'::numeric), ('FF80818123B7FC160123B804AB88000B'), ('N'), ('N'), ('S'), ('N'), ('3B5F9BA2DFC84061979E0C1A9AA9935E'), ('30'::int8), ('N'), ('N'), ('N'), ('N'), ('N'), ('LNA'), ('D'), ('Y'), ('N'), ('N'), ('N'), ('Y'), ('N'), ('N'), ('N'), ('N'), ('N'), ('F856C021A34E49F8A2E949EBCDC9CD27')) was aborted: ERROR: null value in column "value" violates not-null constraint Detail: Failing row contains (F856C021A34E49F8A2E949EBCDC9CD27, 03984EBF3CBB4FBDA84635B5237EAAAF, 0, Y, 2025-01-17 14:27:31.946, 100, 2025-01-17 14:27:31.946, Arrendamientos 21% -19%R (cobros) IVA de Caja, 100, Arrendamientos 21% -19%R (cobros) IVA de Caja, null, 2016-01-01 00:00:00, Y, 21, null, null, null, null, null, FF80818123B7FC160123B804AB88000B, N, N, S, N, 3B5F9BA2DFC84061979E0C1A9AA9935E, 30, N, N, null, null, N, N, N, LNA, null, D, Y, null, null, N, N, N, Y, N, N, N, N, N, null). Call getNextException to see other errors in the batch.], SQL: insert into C_Tax (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, Name, UpdatedBy, Description, ValidFrom, IsSummary, Rate, C_TaxCategory_ID, IsDefault, IsTaxExempt, SOPOType, Cascade, C_BP_TaxCategory_ID, Line, IsWithholdingTax, IsNoTaxable, IsTaxUndeductable, IsTaxDeductable, IsNoVAT, BaseAmount, DocTaxAmount, IsCashVAT, EM_Obspti_Isreversecharge, EM_OBSPTI_IsEquivalentCharge, EM_Obspti_Isintracommunity, EM_Obspti_Islease, EM_Obspti_Isrealestate, EM_Obspti_Reagyp, EM_Obspti_Isrebu, EM_Obspti_Isexport, EM_Obspti_Isimplicitcharge, C_Tax_ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | ||||||||||||
Proposed Solution | |||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | |||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2025-01-20 09:26 | vmromanos | New Issue | |||||||||||
2025-01-20 09:26 | vmromanos | Assigned To | => vmromanos | ||||||||||
2025-01-20 09:27 | vmromanos | Regression date | => 2023-08-28 | ||||||||||
2025-01-20 09:27 | vmromanos | Regression introduced by commit | => https://gitlab.com/openbravo/product/openbravo/-/merge_requests/943/diffs#dfcb656b875809f030e107076a23f4200f634fb3_152_152 [^] | ||||||||||
2025-01-20 09:27 | vmromanos | Regression level | => Production - Confirmed Stable | ||||||||||
2025-01-20 09:27 | vmromanos | Relationship added | caused by 0052639 | ||||||||||
2025-01-20 10:54 | hgbot | Note Added: 0174373 | |||||||||||
2025-01-20 10:56 | vmromanos | Note Added: 0174374 | |||||||||||
2025-01-20 10:57 | vmromanos | Status | new => scheduled |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|