Openbravo Issue Tracking System - POS2
View Issue Details
0055176POS2POSpublic2024-04-11 17:392024-04-22 18:03
kchoperena 
SABARINATH P 
highmajoralways
closedfixed 
5
 
24Q3 
No
0055176: When we are cancelling an order not fully delivered, the Canceled Layaway template is used
We are selecting wrongly the template to be printed in the case of a cancel order. Furthermore, the concept of layaways of layaways is non-existent in React.Even taking this into account, we are trying to use the Canceled Layaway template configured at Organization level whenever we complete a cancel order action
1.- Log into the WebPOS
2.- Create a ticket with a line that uses the 'Pick Up in Store' delivery mode
3.- Pay it and complete it
4.- Reopen again the order and using the contextual menu, try to cancel it
5.- Complete the cancellation and print the report

RESULT: The selected template is the Cancel Layaway template instead of Canceled Receipt Template

VIDEO: https://drive.google.com/file/d/1pSYvYoSkhxyQqNF-ZbiNpXvsrMJ2A6U5/view?usp=sharing [^]
The selectTicketPrintTemplateName function is not correctly calculating the template to be used because the ticket.ordercanceled is false and ticket.cancelLayaway is true

To solve the problem, we should analyze where this status is set and refactor the logic
No tags attached.
Issue History
2024-04-11 17:39kchoperenaNew Issue
2024-04-11 17:39kchoperenaAssigned To => Retail
2024-04-11 17:39kchoperenaTriggers an Emergency Pack => No
2024-04-11 17:42kchoperenaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27799#r27799
2024-04-15 09:10guilleaerStatusnew => acknowledged
2024-04-15 11:07SABARINATH PAssigned ToRetail => SABARINATH P
2024-04-15 11:07SABARINATH PStatusacknowledged => scheduled
2024-04-18 14:50hgbotNote Added: 0163394
2024-04-22 18:03hgbotNote Added: 0163544
2024-04-22 18:03hgbotResolutionopen => fixed
2024-04-22 18:03hgbotStatusscheduled => closed
2024-04-22 18:03hgbotFixed in Version => 24Q3
2024-04-22 18:03hgbotNote Added: 0163545

Notes
(0163394)
hgbot   
2024-04-18 14:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2581 [^]
(0163544)
hgbot   
2024-04-22 18:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2581 [^]
(0163545)
hgbot   
2024-04-22 18:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c5bd586a8e06cdfb10ff516f38d7d549c777aee7
Author: sabarinath palanisamy <sabarinath.palanisamy.ext@openbravo.com>
Date: 22-04-2024 16:03:53
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c5bd586a8e06cdfb10ff516f38d7d549c777aee7 [^]

Fixed ISSUE-55176: Overwrite ticket props in Pos2 to avoid layaway cancelation when CancelTicket.

---
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/CancelOrder.js
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
---