Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0051940 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | minor | have not tried | 2023-03-22 08:58 | 2023-03-23 08:27 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 23Q2 | |||
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 | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0051940: Wrong query in ProductScanProductInfo component | |||||||
Description | The ProductScanProductInfo does a query for retrieving master data information of a product. This query is using a incorrect property on its where clause. | |||||||
Steps To Reproduce | 1) Login in the pos2 2) Go the orders window and select and order to open it 3) After the fix of 0051849 now the query fails. Before that fix, the query seemed to work but it was incorrectly defined. | |||||||
Proposed Solution | Replace the current criteria: const productCriteria = new OB.App.Class.Criteria() .criterion('m_product_id', productId) .limit(1) .build(); with: const productCriteria = new OB.App.Class.Criteria() .criterion('id', productId) .limit(1) .build(); because the "m_product_id" property does not exists in the Product model, "id" must be used instead. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||
|
![]() |
|
(0147823) hgbot (developer) 2023-03-22 09:58 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1619 [^] |
(0147842) hgbot (developer) 2023-03-22 14:04 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1619 [^] |
(0147843) hgbot (developer) 2023-03-22 14:05 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^] Changeset: 8707e4ba2749272e4787e35ea7c7f28a15aab78a Author: Carlos Aristu <carlos.aristu@openbravo.com> Date: 22-03-2023 13:04:29 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/8707e4ba2749272e4787e35ea7c7f28a15aab78a [^] fixes BUG-51940: fix product query in ProductScanProductInfo component --- M web-jspack/org.openbravo.pos2/src/components/ProductScan/ProductScanProductInfo/ProductScanProductInfo.jsx --- |
(0147846) hgbot (developer) 2023-03-22 16:39 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^] Changeset: 7cd1a02d5c00d471b2622630adc923daee85067b Author: Carlos Aristu <carlos.aristu@openbravo.com> Date: 22-03-2023 16:36:06 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7cd1a02d5c00d471b2622630adc923daee85067b [^] related to BUG-51940: can use withId method --- M web-jspack/org.openbravo.pos2/src/components/ProductScan/ProductScanProductInfo/ProductScanProductInfo.jsx --- |
(0147870) hgbot (developer) 2023-03-23 08:27 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^] Changeset: 63fbc0df11cca3eb422a42307eb8ef54175dff90 Author: Carlos Aristu <carlos.aristu@openbravo.com> Date: 23-03-2023 08:27:02 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/63fbc0df11cca3eb422a42307eb8ef54175dff90 [^] related to BUG-51940: mock withId method --- M web-jspack/org.openbravo.pos2/src/components/ProductScan/__test__/ProductScan.test.jsx --- |
![]() |
|||
Date Modified | Username | Field | Change |
2023-03-22 08:58 | caristu | New Issue | |
2023-03-22 08:58 | caristu | Assigned To | => Retail |
2023-03-22 08:58 | caristu | OBNetwork customer | => No |
2023-03-22 08:58 | caristu | Triggers an Emergency Pack | => No |
2023-03-22 08:58 | caristu | Relationship added | related to 0051849 |
2023-03-22 09:00 | caristu | Steps to Reproduce Updated | View Revisions |
2023-03-22 09:01 | caristu | Proposed Solution updated | |
2023-03-22 09:58 | hgbot | Merge Request Status | => open |
2023-03-22 09:58 | hgbot | Note Added: 0147823 | |
2023-03-22 11:00 | caristu | Assigned To | Retail => caristu |
2023-03-22 12:08 | hgbot | Merge Request Status | open => approved |
2023-03-22 14:04 | hgbot | Resolution | open => fixed |
2023-03-22 14:04 | hgbot | Note Added: 0147842 | |
2023-03-22 14:04 | hgbot | Status | new => closed |
2023-03-22 14:05 | hgbot | Fixed in Version | => 23Q2 |
2023-03-22 14:05 | hgbot | Note Added: 0147843 | |
2023-03-22 14:06 | caristu | Steps to Reproduce Updated | View Revisions |
2023-03-22 16:39 | hgbot | Note Added: 0147846 | |
2023-03-23 08:27 | hgbot | Note Added: 0147870 |
Copyright © 2000 - 2009 MantisBT Group |