Openbravo Issue Tracking System - POS2
View Issue Details
0050439POS2POSpublic2022-10-06 15:312023-02-16 08:26
jorgewederago 
radhakrishnan 
highmajoralways
closedfixed 
5
 
23Q1 
No
0050439: It should not be possible to edit the external business partner on closed ticket
When loading a ticket from the backend that contains an external business partner it is possible to remove and edit it.
1.- Do a transaction in the POS using an external BP
2.- Load the ticket from the backend
3.- Click on the BP/Address info of it
4.- Check that you can do whatever you want with it
The call to the external system should be kept, but the buttons should not be clickable.
No tags attached.
related to defect 0051623 closed Retail Business partner button contains logic that should not be there, should be refactored as a User Action instead 
depends on backport 005149723Q1 closed radhakrishnan It should not be possible to edit the external business partner on closed ticket 
has duplicate defect 0049712 closed Retail [CRM] - Change a known client posteriori should not be possible 
Issue History
2022-10-06 15:31jorgewederagoNew Issue
2022-10-06 15:31jorgewederagoAssigned To => Retail
2022-10-06 15:31jorgewederagoTriggers an Emergency Pack => No
2022-10-18 15:32radhakrishnanAssigned ToRetail => radhakrishnan
2022-10-18 15:32radhakrishnanStatusnew => scheduled
2022-10-19 14:01hgbotNote Added: 0142283
2022-12-09 08:04hgbotNote Added: 0144491
2022-12-13 13:15hgbotNote Added: 0144591
2023-01-11 18:03marvintmRelationship addedhas duplicate 0049712
2023-01-11 18:04guilleaerNote Deleted: 0144491
2023-01-11 18:04guilleaerNote Deleted: 0142283
2023-01-29 19:05hgbotResolutionopen => fixed
2023-01-29 19:05hgbotStatusscheduled => closed
2023-01-29 19:05hgbotFixed in Version => 23Q2
2023-01-29 19:05hgbotNote Added: 0145974
2023-01-29 19:05hgbotNote Added: 0145975
2023-01-29 19:07guilleaerStatusclosed => new
2023-01-29 19:07guilleaerResolutionfixed => open
2023-01-29 19:07guilleaerFixed in Version23Q2 =>
2023-01-29 19:08guilleaerStatusnew => scheduled
2023-01-29 19:08guilleaerStatusscheduled => resolved
2023-01-29 19:08guilleaerResolutionopen => fixed
2023-01-29 19:08guilleaerStatusresolved => closed
2023-01-29 19:09guilleaerNote Added: 0145976
2023-01-30 11:11guilleaerStatusclosed => new
2023-01-30 11:11guilleaerResolutionfixed => open
2023-01-30 11:11guilleaerStatusnew => scheduled
2023-01-30 13:52hgbotResolutionopen => fixed
2023-01-30 13:52hgbotStatusscheduled => closed
2023-01-30 13:52hgbotFixed in Version => 23Q2
2023-01-30 13:52hgbotNote Added: 0146032
2023-01-30 13:53guilleaerStatusclosed => new
2023-01-30 13:53guilleaerResolutionfixed => open
2023-01-30 13:53guilleaerFixed in Version23Q2 =>
2023-01-30 13:53guilleaerNote Added: 0146033
2023-02-16 06:07hgbotNote Added: 0146593
2023-02-16 07:50hgbotResolutionopen => fixed
2023-02-16 07:50hgbotStatusnew => closed
2023-02-16 07:50hgbotFixed in Version => 23Q2
2023-02-16 07:50hgbotNote Added: 0146597
2023-02-16 07:50hgbotNote Added: 0146598
2023-02-16 07:54marvintmRelationship addedrelated to 0051623
2023-02-16 08:26hgbotFixed in Version23Q2 => 23Q1
2023-02-16 08:26hgbotNote Added: 0146608

Notes
(0144591)
hgbot   
2022-12-13 13:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1416 [^]
(0145974)
hgbot   
2023-01-29 19:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 1f9bf7d208e398f9a91f19bd9880d7743a7887b2
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 29-01-2023 18:05:11
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/1f9bf7d208e398f9a91f19bd9880d7743a7887b2 [^]

Fixed ISSUE-50439: Don't allow to change BP under some circumstances

* If a ticket is completed and a Verified Return (VR) was created -> not allowed
* If a ticket is completed and a VR was created having the "change business partner" preference enabled -> allowed
* If working with a completed quotation -> not allowed
* if working with a completed quotation that was reactivated -> allowed
* If it is a "canceled and replacement ticket" -> allowed
* If it is not paid and not loaded from BO -> allowed

---
M web-jspack/org.openbravo.pos2/src/components/ButtonBar1/__test__/ButtonBar1.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ButtonBar4/__test__/ButtonBar4.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/TicketBPButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/__test__/TicketBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPButton/__test__/TicketHeaderBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPWithDocType/__test__/TicketHeaderBPWithDocTypeTestUtils.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPropertiesPopover/__test__/TicketPropertiesPopover.test.jsx
---
(0145975)
hgbot   
2023-01-29 19:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1416 [^]
(0145976)
guilleaer   
2023-01-29 19:09   
Backport needed for 23Q1
(0146032)
hgbot   
2023-01-30 13:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: d352ec7a1f345c784af90b8958660fe0e97bda54
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 30-01-2023 12:52:32
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/d352ec7a1f345c784af90b8958660fe0e97bda54 [^]

Revert "Fixed ISSUE-50439: Don't allow to change BP under some circumstances"

This reverts commit 1f9bf7d208e398f9a91f19bd9880d7743a7887b2
---
M web-jspack/org.openbravo.pos2/src/components/ButtonBar1/__test__/ButtonBar1.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ButtonBar4/__test__/ButtonBar4.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/TicketBPButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/__test__/TicketBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPButton/__test__/TicketHeaderBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPWithDocType/__test__/TicketHeaderBPWithDocTypeTestUtils.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPropertiesPopover/__test__/TicketPropertiesPopover.test.jsx
---
(0146033)
guilleaer   
2023-01-30 13:53   
Commit reverted and issue reopened
(0146593)
hgbot   
2023-02-16 06:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1526 [^]
(0146597)
hgbot   
2023-02-16 07:50   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: ffa68292f1bdfe1be98ea529e5baf1bb70be688b
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 15-02-2023 18:39:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/ffa68292f1bdfe1be98ea529e5baf1bb70be688b [^]

Fixed ISSUE-50439: Don't allow to change BP under some circumstances
* If a ticket is completed and a Verified Return (VR) was created -> not allowed
* If a ticket is completed and a VR was created having the "change business partner" preference enabled ->
  allowed
* If working with a completed quotation -> not allowed
* if working with a completed quotation that was reactivated -> allowed
* If it is a "canceled and replacement ticket" -> allowed
* If it is not paid and not loaded from BO -> allowed

---
M web-jspack/org.openbravo.pos2/src/components/ButtonBar1/__test__/ButtonBar1.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ButtonBar4/__test__/ButtonBar4.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/TicketBPButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/__test__/TicketBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPButton/__test__/TicketHeaderBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPWithDocType/__test__/TicketHeaderBPWithDocTypeTestUtils.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPropertiesPopover/__test__/TicketPropertiesPopover.test.jsx
---
(0146598)
hgbot   
2023-02-16 07:50   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1526 [^]
(0146608)
hgbot   
2023-02-16 08:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: dcc1b428e971a685eefd5b98ae4477ef62009672
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 16-02-2023 11:37:15
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/dcc1b428e971a685eefd5b98ae4477ef62009672 [^]

Fixed ISSUE-50439: Don't allow to change BP under some circumstances
* If a ticket is completed and a Verified Return (VR) was created -> not allowed
* If a ticket is completed and a VR was created having the "change business partner" preference enabled ->
  allowed
* If working with a completed quotation -> not allowed
* if working with a completed quotation that was reactivated -> allowed
* If it is a "canceled and replacement ticket" -> allowed
* If it is not paid and not loaded from BO -> allowed

---
M web-jspack/org.openbravo.pos2/src/components/ButtonBar1/__test__/ButtonBar1.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ButtonBar4/__test__/ButtonBar4.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/TicketBPButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/__test__/TicketBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPButton/__test__/TicketHeaderBPButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketHeader/TicketHeaderBPWithDocType/__test__/TicketHeaderBPWithDocTypeTestUtils.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPropertiesPopover/__test__/TicketPropertiesPopover.test.jsx
---