Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0055758 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Modules] Unique Product UPC | minor | always | 2024-06-12 19:05 | 2024-07-08 13:56 | |||
Reporter | sdossantos | View Status | public | |||||
Assigned To | Triage Omni OMS | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 1.1.2 | SCM revision | ||||||
Regression date | ||||||||
Regression introduced by commit | ||||||||
Regression level | ||||||||
Review Assigned To | ||||||||
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))); } } | |||||||
Tags | No tags attached. | |||||||
Attached Files | Captura de pantalla -2024-06-12 14-00-44.png [^] (172,939 bytes) 2024-06-12 19:05
| |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||
|
Notes | |
(0165866) frank_gonzalez (developer) 2024-06-12 19:30 |
Jira: https://openbravo.atlassian.net/browse/RM-14669 [^] |
(0166076) hgbot (developer) 2024-06-18 18:20 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.multiupc/-/merge_requests/7 [^] |
(0166607) sdossantos (developer) 2024-07-02 14:39 |
any news? |
(0166620) hgbot (developer) 2024-07-03 08:18 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.multiupc [^] Changeset: 8d148768b26ee8375e8102e94376edd2d6193e3e Author: Kousalya Ramasamy <kousalya.ramasamy@openbravo.com> Date: 03-07-2024 06:16:19 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.multiupc/-/commit/8d148768b26ee8375e8102e94376edd2d6193e3e [^] Fixed ISSUE-55758: MultiUPC validation --- M src/org/openbravo/multiupc/event/NoDuplicateUpcHandler.java --- |
(0166621) hgbot (developer) 2024-07-03 08:18 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.multiupc/-/merge_requests/7 [^] |
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 |
Copyright © 2000 - 2009 MantisBT Group |