Openbravo Issue Tracking System - Modules | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0055758 | Modules | Unique Product UPC | public | 2024-06-12 19:05 | 2024-07-08 13:56 | ||||||||
Reporter | sdossantos | ||||||||||||
Assigned To | Triage Omni OMS | ||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | closed | Resolution | fixed | ||||||||||
Platform | OS | 5 | OS Version | ||||||||||
Product Version | 1.1.2 | ||||||||||||
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 | 0055758: Unique UPC in product | ||||||||||||
Description | If I configure the same upc that is in the header on the same product, it fails. This should work because it is the same product. | ||||||||||||
Steps To Reproduce | 1- Add upc in the tab of the multiupc, the same upc in the header of the product We see the error Attached the image | ||||||||||||
Proposed Solution | at line 79 // Check UPC in Product final OBQuery<Product> productQuery = OBDal.getInstance() .createQuery(Product.class, "as e where e.uPCEAN = :upcValue and e.organization.id = :orgId"); productQuery.setNamedParameter("upcValue", newUpc); productQuery.setNamedParameter("orgId", orgId); productQuery.setFilterOnReadableOrganization(false); productQuery.setMaxResult(10); List<Product> listProduct = productQuery.list(); if (listProduct.size() > 0) { Product p = listProduct.get(0); for (Product product : listProduct) { if(!p.getId().equals(product.getId())) { listProductName.add(product.getName()); } } } if (listProductName.size() > 0) { throw new OBException(String.format(OBMessageUtils.messageBD("OBMUPC_DUPLICATED_UPC"), String.join(", ", listProductName))); } } | ||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | Captura de pantalla -2024-06-12 14-00-44.png (172,939) 2024-06-12 19:05 https://issues.openbravo.com/file_download.php?file_id=19912&type=bug | ||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2024-06-12 19:05 | sdossantos | New Issue | |||||||||||
2024-06-12 19:05 | sdossantos | Assigned To | => Triage Omni OMS | ||||||||||
2024-06-12 19:05 | sdossantos | File Added: Captura de pantalla -2024-06-12 14-00-44.png | |||||||||||
2024-06-12 19:30 | frank_gonzalez | Note Added: 0165866 | |||||||||||
2024-06-18 13:27 | sdossantos | Proposed Solution updated | |||||||||||
2024-06-18 18:20 | hgbot | Note Added: 0166076 | |||||||||||
2024-06-24 21:59 | sdossantos | Priority | high => normal | ||||||||||
2024-06-24 21:59 | sdossantos | Severity | major => minor | ||||||||||
2024-07-02 14:39 | sdossantos | Note Added: 0166607 | |||||||||||
2024-07-03 08:18 | hgbot | Resolution | open => fixed | ||||||||||
2024-07-03 08:18 | hgbot | Status | new => resolved | ||||||||||
2024-07-03 08:18 | hgbot | Note Added: 0166620 | |||||||||||
2024-07-03 08:18 | hgbot | Note Added: 0166621 | |||||||||||
2024-07-08 13:56 | aferraz | Status | resolved => closed | ||||||||||
2024-08-22 07:01 | guillermogil | Relationship added | causes 0056292 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|