Openbravo Issue Tracking System - POS2
View Issue Details
0056621POS2POSpublic2024-10-02 12:292024-11-29 12:55
fermin_ostivar 
Rajesh_18 
normalminoralways
closedfixed 
5
pi 
25Q1 
approved
No
110175
Production - QA Approved
2024-08-14
main
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/111409aa501e50d733b8b0c375a2bcbd071ad192 [^]
No
0056621: Sales Representative removed when a product is added
The Sales Representative selected is removed when a product is added to the order.
[BOS]
At TouchPoint Type level:
Sales Representative in New Orders * -> Keep it blank
Sales Representative is Mandatory -> False

[POS]
Login
Select a "Sales Representative"
Add a Product

The sales representative is removed from the order
Do not remove the sales representative from the order
No tags attached.
related to defect 0055749 closed sreehari The sales representative is being automatically added to a Verified Return when it should be empty. 
depends on backport 005733324Q4 closed Rajesh_18 Sales Representative removed when a product is added 
depends on backport 005733424Q3.3 closed Rajesh_18 Sales Representative removed when a product is added 
depends on backport 005733524Q2.5 closed Rajesh_18 Sales Representative removed when a product is added 
? Screencast from 02-10-24 12:25:31.webm (1,524,413) 2024-10-02 12:29
https://issues.openbravo.com/file_download.php?file_id=20211&type=bug
Issue History
2024-10-02 12:29fermin_ostivarNew Issue
2024-10-02 12:29fermin_ostivarAssigned To => Retail
2024-10-02 12:29fermin_ostivarFile Added: Screencast from 02-10-24 12:25:31.webm
2024-10-02 12:29fermin_ostivarOBNetwork customer => No
2024-10-02 12:29fermin_ostivarSupport ticket => 110175
2024-10-02 12:29fermin_ostivarTriggers an Emergency Pack => No
2024-10-02 12:34guillermogilStatusnew => acknowledged
2024-10-02 12:34guillermogilRelationship addedrelated to 0055749
2024-10-02 12:35guillermogilSeveritymajor => minor
2024-10-03 11:07Rajesh_18Assigned ToRetail => Rajesh_18
2024-10-03 11:07Rajesh_18Statusacknowledged => scheduled
2024-10-03 17:31Rajesh_18Regression level => Production - QA Approved
2024-10-03 17:31Rajesh_18Regression date => 2024-08-14
2024-10-03 17:31Rajesh_18Regression introduced in release => main
2024-10-03 17:31Rajesh_18Regression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/111409aa501e50d733b8b0c375a2bcbd071ad192 [^]
2024-10-04 11:22hgbotMerge Request Status => open
2024-10-04 11:22hgbotNote Added: 0169997
2024-10-04 11:25hgbotNote Added: 0169998
2024-11-29 12:51marvintmStatusscheduled => acknowledged
2024-11-29 12:51marvintmStatusacknowledged => scheduled
2024-11-29 12:51hgbotMerge Request Statusopen => approved
2024-11-29 12:52hgbotResolutionopen => fixed
2024-11-29 12:52hgbotStatusscheduled => closed
2024-11-29 12:52hgbotFixed in Version => 25Q1
2024-11-29 12:52hgbotNote Added: 0172772
2024-11-29 12:52hgbotNote Added: 0172773
2024-11-29 12:52hgbotNote Added: 0172774
2024-11-29 12:52hgbotNote Added: 0172775
2024-11-29 12:55marvintmNote Added: 0172776

Notes
(0169997)
hgbot   
2024-10-04 11:22   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2967 [^]
(0169998)
hgbot   
2024-10-04 11:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/79 [^]
(0172772)
hgbot   
2024-11-29 12:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 92ebc93594840393366a1fd63706fa6af72ecc55
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 29-11-2024 11:52:18
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/92ebc93594840393366a1fd63706fa6af72ecc55 [^]

Fixed ISSUE-56621: Sales Representative is set based on the configuration

---
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/setTicketHeaderAndLineWithSalesRepresentative.js
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/AddProductActionPreparation.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddProductActionPreparation.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/SetDefaultSalesRepresentative.js
R web-jspack/org.openbravo.pos2/src/model/ticket/actions/ReturnVerifiedTicketHooks.js
R web-jspack/org.openbravo.pos2/src/model/ticket/actions/__test__/ReturnVerifiedTicketHooks.test.js
---
(0172773)
hgbot   
2024-11-29 12:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2967 [^]
(0172774)
hgbot   
2024-11-29 12:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns [^]
Changeset: 127e7703a4c8880a27d01d50bfe5d7c567dad843
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 04-10-2024 14:23:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/commit/127e7703a4c8880a27d01d50bfe5d7c567dad843 [^]

Related to ISSUE-56621: Sales Representative is set based on the configuration

---
M web/org.openbravo.retail.returns/app/model/business-object/ticket/actions/ReturnVerifiedTicket.js
---
(0172775)
hgbot   
2024-11-29 12:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/79 [^]
(0172776)
marvintm   
2024-11-29 12:55   
- Tested that reported problem doesn't happen (now sales representative is not automatically removed when products are added)
- Tested that original issue reported is also not reproducible (when performing verified returns, now the configuration set in the channel touchpoint type is used, so sales representative will or will not be set automatically depending on how the terminal is configured)
- Tested that the configuration to set or not the sales representative is still considered when creating normal orders