Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0052679 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | major | always | 2023-06-06 13:16 | 2023-06-08 11:23 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | prakashmurugesan88 | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 23Q3 | |||
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 | |||||||
Review Assigned To | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0052679: Till is locked with open receipt ticket with a sales representative of other store | |||||||
Description | When one paid ticket is loaded in the till (Orders menu option) and the sales representative linked to the ticket does not belong to this store, an error is returned: TypeError: Cannot read properties of undefined (reading 'undefined') at ConfigurableButton.jsx:59:16 at Array.map (<anonymous>) at c (ConfigurableButton.jsx:48:33) at ia (react-dom.production.min.js:157:137) at Ba (react-dom.production.min.js:180:154) at $u (react-dom.production.min.js:269:343) at jl (react-dom.production.min.js:250:347) at Sl (react-dom.production.min.js:250:278) at Ol (react-dom.production.min.js:250:138) at ml (react-dom.production.min.js:243:163) uu @ react-dom.production.min.js:216 | |||||||
Steps To Reproduce | . in store1: 1- do login with cashier1 (cashier1 can not access to store2) 2- complete a ticket . in store2: 3- do login with cashier2 4- click in "Orders" and select the ticket created in 1 -> error: TypeError: Cannot read properties of undefined (reading 'undefined') | |||||||
Proposed Solution | Lines candidates to be fixed: if (foundSalesRep) { setSalesRepInfo(foundSalesRep ? foundSalesRep[0] : {}); } | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0150888) hgbot (developer) 2023-06-07 13:09 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1878 [^] |
(0150932) hgbot (developer) 2023-06-08 11:23 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^] Changeset: f311822890242c2bd35f61ab9b4028fd972ef36c Author: Prakash M <prakash@qualiantech.com> Date: 08-06-2023 09:23:25 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f311822890242c2bd35f61ab9b4028fd972ef36c [^] Fixes ISSUE-52679: Fixed error while loading ticket with sales representative of other store. If sales representative is not present in the frontend, it will be loaded from the backend. --- A src/org/openbravo/pos2/master/OBPOS2LoadedSalesRep.java M src-db/database/sourcedata/AD_MESSAGE.xml M src-db/database/sourcedata/OBMOBC_SERVICES.xml M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLinePopover/TicketLineSalesRepSelectorField/TicketLineSalesRepSelectorField.jsx M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/TicketLineSalesRepInfo/TicketLineSalesRepInfo.jsx M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketMultiLineSalesRepSelectorField/TicketMultiLineSalesRepSelectorField.jsx M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPropertiesPopover/TicketSalesRepSelectorField/TicketSalesRepSelectorField.jsx M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketSalesRepButton/TicketSalesRepButton.jsx M web-jspack/org.openbravo.pos2/src/model/ticket/SalesRepresentativeUtils.js M web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddNewTicketActionPreparation.js M web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddProductActionPreparation.js --- |
(0150933) hgbot (developer) 2023-06-08 11:23 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1878 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2023-06-06 13:16 | malsasua | New Issue | |
2023-06-06 13:16 | malsasua | Assigned To | => Retail |
2023-06-06 13:16 | malsasua | Triggers an Emergency Pack | => No |
2023-06-06 13:45 | guillermogil | Assigned To | Retail => prakashmurugesan88 |
2023-06-07 13:09 | hgbot | Note Added: 0150888 | |
2023-06-08 11:23 | hgbot | Resolution | open => fixed |
2023-06-08 11:23 | hgbot | Status | new => closed |
2023-06-08 11:23 | hgbot | Fixed in Version | => 23Q3 |
2023-06-08 11:23 | hgbot | Note Added: 0150932 | |
2023-06-08 11:23 | hgbot | Note Added: 0150933 |
Copyright © 2000 - 2009 MantisBT Group |