Openbravo Issue Tracking System - POS2
View Issue Details
0052378POS2POSpublic2023-05-08 10:192023-07-28 10:00
asier_perez 
javierRodriguez 
normalminoralways
closedfixed 
5
 
 
No
0052378: 'Order is not found' error message appears when switching between two existing orders
When there are two new open orders, and we try to switch from one to the other, an error message appears, saying that the order is not found when it is.
1) Log in POS2
2) Add any product to the current order
3) Click 'New Order'
4) Add any product to the new order
5) Click 'Switch Order'
6) Select the first order => The error message appears
No tags attached.
related to defect 0052342 closed caristu POS2 No error feedback provided in the UI when some requests fail 
depends on backport 005309623Q3 closed javierRodriguez POS2 'Order is not found' error message appears when switching between two existing orders 
has duplicate defect 0052827 closed  POS2 [SALES] Error 'Order not found' when switching between draft tickets 
related to defect 0053425 closed ranjith_qualiantech_com Retail Modules POS draft tickets should be validated in backoffice when completing/deleting the ticket 
png ordererror.png (112,393) 2023-05-08 10:19
https://issues.openbravo.com/file_download.php?file_id=18495&type=bug
png
Issue History
2023-05-08 10:19asier_perezNew Issue
2023-05-08 10:19asier_perezAssigned To => Retail
2023-05-08 10:19asier_perezFile Added: ordererror.png
2023-05-08 10:19asier_perezRegression level => Automated tests
2023-05-08 10:19asier_perezRegression date => 2023-05-05
2023-05-08 10:19asier_perezTriggers an Emergency Pack => No
2023-05-08 10:37asier_perezRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1080 [^]
2023-05-09 12:21hgbotNote Added: 0149485
2023-05-09 12:23asier_perezRegression levelAutomated tests =>
2023-05-09 12:23asier_perezRegression date2023-05-05 =>
2023-05-09 12:23asier_perezRegression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1080 [^] =>
2023-05-09 12:23asier_perezAssigned ToRetail => javierRodriguez
2023-05-09 12:23asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26049#r26049
2023-05-09 12:25asier_perezDescription Updatedbug_revision_view_page.php?rev_id=26051#r26051
2023-05-09 12:25caristuRelationship addedrelated to 0052342
2023-05-09 12:28asier_perezSummaryOrder is not found when switching from an order to another => 'Order is not found' error message appears when switching between two existing orders
2023-05-09 12:29asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26052#r26052
2023-05-09 13:13hgbotNote Added: 0149490
2023-05-09 21:25hgbotNote Added: 0149522
2023-05-18 10:48javierRodriguezStatusnew => scheduled
2023-05-24 17:15hgbotResolutionopen => fixed
2023-05-24 17:15hgbotStatusscheduled => closed
2023-05-24 17:15hgbotNote Added: 0150237
2023-05-24 17:15hgbotFixed in Version => RR23Q3
2023-05-24 17:15hgbotNote Added: 0150238
2023-05-24 17:15hgbotNote Added: 0150239
2023-05-24 17:15hgbotNote Added: 0150240
2023-05-24 17:15hgbotNote Added: 0150241
2023-05-25 17:33asier_perezNote Added: 0150303
2023-05-25 17:33asier_perezStatusclosed => new
2023-05-25 17:33asier_perezResolutionfixed => open
2023-05-25 17:33asier_perezFixed in VersionRR23Q3 =>
2023-05-25 17:35asier_perezNote Edited: 0150303bug_revision_view_page.php?bugnote_id=0150303#r26134
2023-05-25 18:23hgbotResolutionopen => fixed
2023-05-25 18:23hgbotStatusnew => closed
2023-05-25 18:23hgbotFixed in Version => RR23Q3
2023-05-25 18:23hgbotNote Added: 0150309
2023-06-27 11:52marvintmStatusclosed => new
2023-06-27 11:52marvintmResolutionfixed => open
2023-06-27 11:52marvintmFixed in VersionRR23Q3 =>
2023-06-27 11:52marvintmRelationship addedhas duplicate 0052827
2023-06-27 15:43hgbotNote Added: 0151673
2023-07-06 12:10hgbotNote Added: 0152158
2023-07-07 16:11hgbotNote Added: 0152197
2023-07-12 08:46hgbotNote Added: 0152368
2023-07-12 09:05guilleaerNote Deleted: 0151673
2023-07-12 09:05guilleaerNote Deleted: 0152368
2023-07-12 09:06hgbotResolutionopen => fixed
2023-07-12 09:06hgbotStatusnew => closed
2023-07-12 09:06hgbotNote Added: 0152369
2023-07-12 09:06hgbotFixed in Version => RR23Q4
2023-07-12 09:06hgbotNote Added: 0152370
2023-07-12 09:07hgbotNote Added: 0152371
2023-07-12 09:07hgbotNote Added: 0152372
2023-07-12 09:44hgbotNote Added: 0152375
2023-07-12 11:19hgbotNote Added: 0152376
2023-07-12 11:19hgbotNote Added: 0152377
2023-07-28 10:00guilleaerStatusclosed => new
2023-07-28 10:00guilleaerResolutionfixed => open
2023-07-28 10:00guilleaerFixed in VersionRR23Q4 =>
2023-07-28 10:00guilleaerStatusnew => scheduled
2023-07-28 10:00guilleaerStatusscheduled => resolved
2023-07-28 10:00guilleaerResolutionopen => fixed
2023-07-28 10:00guilleaerStatusresolved => closed
2023-12-28 10:33ranjith_qualiantech_comRelationship addedrelated to 0053425

Notes
(0149485)
hgbot   
2023-05-09 12:21   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f8d199f4b85d19ced4efcff68bfd8c1169f51512
Author: Asier Perez <asier.perez@openbravo.com>
Date: 09-05-2023 12:21:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f8d199f4b85d19ced4efcff68bfd8c1169f51512 [^]

[cypress] Related to ISSUE-52378: Temporarily skipping failing tests until issue is solved

---
M web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/returnOrder.spec.js
M web-jspack/org.openbravo.pos2/src-test/cypress/e2e/RunAllSpecs/runAllSpecs.spec.js
---
(0149490)
hgbot   
2023-05-09 13:13   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 7b30877d55a908af634a47df1195f82fce7de1fb
Author: Asier Perez <asier.perez@openbravo.com>
Date: 09-05-2023 13:13:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7b30877d55a908af634a47df1195f82fce7de1fb [^]

[cypress] Related to ISSUE-52378: Temporarily skipping failing tests until issue is solved

---
M web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/returnOrder.spec.js
---
(0149522)
hgbot   
2023-05-09 21:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1183 [^]
(0150237)
hgbot   
2023-05-24 17:15   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1183 [^]
(0150238)
hgbot   
2023-05-24 17:15   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 10a0e14e494339ad7d7be8fb195087d6e73bcffa
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 24-05-2023 15:15:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/10a0e14e494339ad7d7be8fb195087d6e73bcffa [^]

Fixed ISSUE-52378: Refactor duplicated order id sanity check

Instead of using paid receipt request to validate if an order id has been used for any other order,
a new web service is created to check it

Paid receipt web service fails if the order id which the application is trying to check does not exist.
This fail action makes the application to show an error as a notification.

For that reason, a new web service is created. This ws only fails due to technical errors. If the order exist,
the response has an exist parametes set to true, otherwise, false
- Create utility java class to find orders and avoid to have duplicated code
- Create new web service
- Refactor isOrderIdUsedInBackend function to use this new ws

---
A src/org/openbravo/retail/posterminal/CheckOrderExist.java
A src/org/openbravo/retail/posterminal/utility/OrderFinder.java
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js
---
(0150239)
hgbot   
2023-05-24 17:15   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: ac5f5be31b054698ad3d6ccacd4fd78b3e0a5f62
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 24-05-2023 15:15:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/ac5f5be31b054698ad3d6ccacd4fd78b3e0a5f62 [^]

Related to ISSUE-52378: Refactor json to send if something went wrong during execution

---
M src/org/openbravo/retail/posterminal/CheckOrderExist.java
---
(0150240)
hgbot   
2023-05-24 17:15   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 4a1409097e8dbe7e9a2f98bca8f5177ac4be8637
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 24-05-2023 15:15:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/4a1409097e8dbe7e9a2f98bca8f5177ac4be8637 [^]

Related to ISSUE-52378: Create message to send on error

---
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0150241)
hgbot   
2023-05-24 17:15   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 7a008914ab97d7da3a96417d409bd77953259386
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 24-05-2023 15:15:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/7a008914ab97d7da3a96417d409bd77953259386 [^]

 Related to ISSUE-52378: Improve log error message if something went wrong

---
M src/org/openbravo/retail/posterminal/CheckOrderExist.java
---
(0150303)
asier_perez   
2023-05-25 17:33   
(edited on: 2023-05-25 17:35)
The fix should have been executed against try-pos2 since the error reported was causing some Cypress tests to fail. The fix is incomplete because it causes more errors on try-pos2. These errors can be seen here: https://builds.openbravo.com/job/mod-cypress/2712/ [^]

Once the fix is ready, but before merging it, skipped tests should be unskipped in order to check if everything is fixed. These tests are mainworkflows.spec and the last test of returnOrder.spec.

(0150309)
hgbot   
2023-05-25 18:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: b05834346e9f613038af31cc5215ebf64b216d7a
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 25-05-2023 18:23:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/b05834346e9f613038af31cc5215ebf64b216d7a [^]

Revert " Related to ISSUE-52378: Improve log error message if something went wrong"

This reverts commit 7a008914ab97d7da3a96417d409bd77953259386.

Revert "Related to ISSUE-52378: Create message to send on error"

This reverts commit 4a1409097e8dbe7e9a2f98bca8f5177ac4be8637.

Revert "Related to ISSUE-52378: Refactor json to send if something went wrong during execution"

This reverts commit ac5f5be31b054698ad3d6ccacd4fd78b3e0a5f62.

Revert "Fixed ISSUE-52378: Refactor duplicated order id sanity check"

This reverts commit 10a0e14e494339ad7d7be8fb195087d6e73bcffa.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js
R src/org/openbravo/retail/posterminal/CheckOrderExist.java
R src/org/openbravo/retail/posterminal/utility/OrderFinder.java
---
(0152158)
hgbot   
2023-07-06 12:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1267 [^]
(0152197)
hgbot   
2023-07-07 16:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1942 [^]
(0152369)
hgbot   
2023-07-12 09:06   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1267 [^]
(0152370)
hgbot   
2023-07-12 09:06   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: ff6a0e77a508ca69fe0742fa1d3e1b10b465dcef
Author: Javier Ayala <javier.ayala@openbravo.com>
Date: 12-07-2023 07:06:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/ff6a0e77a508ca69fe0742fa1d3e1b10b465dcef [^]

Fixed ISSUE-52378: Refactor of the sanity check to detect duplicated order ids

---
A src/org/openbravo/retail/posterminal/CheckOrderExist.java
A src/org/openbravo/retail/posterminal/utility/OrderFinder.java
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js
---
(0152371)
hgbot   
2023-07-12 09:07   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 502b24837d92c0c108fb93363d7646f1be5b52c8
Author: Javier Ayala <javier.ayala@openbravo.com>
Date: 12-07-2023 07:07:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/502b24837d92c0c108fb93363d7646f1be5b52c8 [^]

Related to ISSUE-52378: Adapt cypress to work with new Order Finder + Adapt order list test

---
M web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/returnOrder.spec.js
M web-jspack/org.openbravo.pos2/src-test/cypress/fixtures/CancelAndReplace.json
M web-jspack/org.openbravo.pos2/src-test/cypress/fixtures/CashUp.json
M web-jspack/org.openbravo.pos2/src-test/cypress/fixtures/ReversePayment.json
M web-jspack/org.openbravo.pos2/src-test/cypress/fixtures/ViewOrdersOfCustomer.json
M web-jspack/org.openbravo.pos2/src-test/cypress/functions/backOfficeRequests.js
M web-jspack/org.openbravo.pos2/src-test/cypress/integration/paidReceipts.int.spec.js
---
(0152372)
hgbot   
2023-07-12 09:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1942 [^]
(0152375)
hgbot   
2023-07-12 09:44   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1278 [^]
(0152376)
hgbot   
2023-07-12 11:19   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 946de8c3870c821d9aa710b4042ac32cdce80eb4
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 12-07-2023 09:40:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/946de8c3870c821d9aa710b4042ac32cdce80eb4 [^]

related to ISSUE-52378: Use import and fix java format

---
M src/org/openbravo/retail/posterminal/utility/OrderFinder.java
---
(0152377)
hgbot   
2023-07-12 11:19   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1278 [^]