Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047832Retail ModulesWeb POSpublic2021-10-11 10:392021-10-15 11:18
fernando_merino 
Retail 
normalmajoralways
newopen 
5
 
 
No
0047832: Problem introducing long descriptions in some tables (Retail Pack Modules)
This problem occurs only on an Oracle database. The problem is that the DESCRIPTION field, of some retail modules tables listed below, is defined as VARCHAR2(255 BYTE). The DESCRIPTION field is limited to 255 CHARACTERS long, so if all these characters don't exceed the limit of 255 BYTES there is no problem (e.g 255 characters of 1 BYTE each). The problem comes when the description contains characters larger than 1 BYTE. If the description is a long one, for example one with 255 characters, the characters limit is not exceeded, but if it contains some characters larger than 1 BYTE, like for example the º character that occupies 2 BYTES, then the limit of 255 BYTES is exceeded (254 one-byte characters, plus one of 2 bytes make 256 bytes, which do not fit in the field defined in the database). I indicate below all the tables from retail pack modules affected:

org.openbravo.retail.config --> OBRETCO_PRODUCTLIST
    
org.openbravo.retail.posterminal --> OBPOS_APPROVAL_REASON
org.openbravo.retail.posterminal --> OBPOS_PAYMENTGROUP_TRL
org.openbravo.retail.posterminal --> OBPOS_PAYMENTGROUP
    
org.openbravo.mobile.core --> OBMOBC_ABA
org.openbravo.mobile.core --> OBMOBC_PROCESS_DEFINITION
org.openbravo.mobile.core --> OBMOBC_ACTION
org.openbravo.mobile.core --> OBMOBC_ABA_LAYVARIANT
org.openbravo.mobile.core --> OBMOBC_UICONFIGURATION
org.openbravo.mobile.core --> OBMOBC_WINDOW
1. Go to any window that makes use of some of the tables listed above
2. Create a new record and in the DESCRIPTION field input a long description reaching the limit of 255 characters and containing some characters larger than 1 BYTE, like for example the º characters. (Try with this description for example --> This is a description example:ººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººº)
3. Try to save the record, you will get an error similar to this one: ERROR: Saving failed. ORA-12899: value too large for column "ERP_PI_ORACLE"."<TableName>"."DESCRIPTION" (actual: 480, maximum: 255)
1. Change column definition of the DESCRIPTION field from VARCHAR to NVARCHAR for all the tables affected
No tags attached.
related to design defect 0047831 new Triage Omni OMS Openbravo ERP Problem introducing long descriptions in some tables (CORE) 
related to defect 0047765 closed fernando_merino Openbravo ERP Problem posting multiple invoices in the same collection 
png AffectedTableRetailPack.png (44,571) 2021-10-11 10:39
https://issues.openbravo.com/file_download.php?file_id=16260&type=bug
png
Issue History
2021-10-11 10:39fernando_merinoNew Issue
2021-10-11 10:39fernando_merinoAssigned To => Retail
2021-10-11 10:39fernando_merinoFile Added: AffectedTableRetailPack.png
2021-10-11 10:39fernando_merinoTriggers an Emergency Pack => No
2021-10-11 10:41fernando_merinoDescription Updatedbug_revision_view_page.php?rev_id=23175#r23175
2021-10-11 13:29fernando_merinoRelationship addedrelated to 0047831
2021-10-11 13:37aferrazCategoryManual user action => Web POS
2021-10-14 09:53aferrazRelationship addedrelated to 0047765
2021-10-15 11:18aferrazTypedefect => design defect

There are no notes attached to this issue.