Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053475Retail ModulesWeb POSpublic2023-09-11 08:462023-09-26 16:23
ranjith_qualiantech_com 
ranjith_qualiantech_com 
highmajorrandom
closedfixed 
5
 
RR23Q2.4RR23Q2.4 
No
0053475: POS draft tickets should be validated in backoffice when completing/deleting the ticket
In issue 51445, added mechanism to check the current ticket is present in backoffice when loading/refreshing POS. (And also loading ticket using loadLocalTicket action)
It should be enhanced for the following case.
If pos has draft tickets in State TicketList, then when completing/deleting state ticket, next draft ticket from State TicketList should be checked in backoffice.

Check Description or Issue 51445
When completing/deleting the ticket, add the actionPreparation for the respective action.
In the actionPreparation, "all" draft tickets should checked in backoffice. If the draft tickets present in backoffice, then those should be removed from State TicketList.
And above logic has to be added in "loadLocalTicket" action also (Currently, "loadLocalTicket" action is validating only the current draft ticket.)

No tags attached.
blocks defect 0053425 closed ranjith_qualiantech_com POS draft tickets should be validated in backoffice when completing/deleting the ticket 
Issue History
2023-09-18 14:20marvintmTypedefect => backport
2023-09-18 14:20marvintmTarget Version => RR23Q2.4
2023-09-21 10:43hgbotNote Added: 0155082
2023-09-26 16:23hgbotNote Added: 0155261
2023-09-26 16:23hgbotResolutionopen => fixed
2023-09-26 16:23hgbotStatusscheduled => closed
2023-09-26 16:23hgbotFixed in Version => RR23Q2.4
2023-09-26 16:23hgbotNote Added: 0155263

Notes
(0155082)
hgbot   
2023-09-21 10:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1354 [^]
(0155261)
hgbot   
2023-09-26 16:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1354 [^]
(0155263)
hgbot   
2023-09-26 16:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 9ebdc4ccd8d76f87aeab1dc9f3ddd74df0df75dd
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 21-09-2023 13:57:34
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9ebdc4ccd8d76f87aeab1dc9f3ddd74df0df75dd [^]

Fixed ISSUE-53475: Added validation for state TicketList present in backoffice
* When completing/deleting ticket, next draft ticket from TicketList
  should be checked in backoffice

---
A web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actionpreparations/ValidateTicketList.js
M src/org/openbravo/retail/posterminal/OBPOSComponentProvider.java
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket-list/actions/LoadLocalTicket.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CancelTicket.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CompleteCreditTicket.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CompleteLayaway.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CompleteTicket.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteTicket.js
---