Openbravo Issue Tracking System - POS2
View Issue Details
0054967POS2POSpublic2024-03-15 11:412024-09-12 08:34
sofia_rodriguez 
SABARINATH P 
highmajoralways
closedfixed 
5
 
 
guillermogil
No
0054967: Using Gift Cards as Payment Methods prints Default Template
Having modified the Gift Card Template in the Back Office (different one than Default template), when the user selects Gift Card as a payment method, the ticket printed is the Default template.

In the other uses os the gift card (being buying it and printing it from the menu option "Search gift cards/credit notes/gift certificates"), the correct template is being printed.
1. Open POS and do a ticket assigned to a customer
2. Go to payment screen and select Gift Card as Payment Method
3. Select the customer's gift card to use
4. Finish payment and select to print the receipt
No tags attached.
depends on backport 005643324Q2.3 closed Rajesh_18 Using Gift Cards as Payment Methods prints Default Template 
has duplicate defect 0056421 closed Rajesh_18 RM-16711 [SALES] Some informations are incorrect on the remaining balance ticket of the gift card 
related to defect 0054999 closed SABARINATH P The Cash Management always prints the Default Template even if another one is configured in WebPOS formats of organization 
Issue History
2024-03-15 11:41sofia_rodriguezNew Issue
2024-03-15 11:41sofia_rodriguezAssigned To => Retail
2024-03-15 11:41sofia_rodriguezTriggers an Emergency Pack => No
2024-03-18 10:46guilleaerStatusnew => acknowledged
2024-03-18 12:53SABARINATH PAssigned ToRetail => SABARINATH P
2024-03-18 14:24SABARINATH PStatusacknowledged => scheduled
2024-03-20 12:24SABARINATH PRelationship addedrelated to 0054999
2024-03-28 07:06hgbotNote Added: 0162734
2024-04-22 18:16hgbotNote Added: 0163546
2024-04-22 18:16hgbotResolutionopen => fixed
2024-04-22 18:16hgbotStatusscheduled => closed
2024-04-22 18:16hgbotNote Added: 0163547
2024-04-24 11:52kchoperenaNote Added: 0163649
2024-04-24 11:52kchoperenaStatusclosed => new
2024-04-24 11:52kchoperenaResolutionfixed => open
2024-04-24 13:22hgbotNote Added: 0163656
2024-04-24 15:06SABARINATH PStatusnew => scheduled
2024-04-25 08:27hgbotNote Added: 0163717
2024-04-25 08:27hgbotResolutionopen => fixed
2024-04-25 08:27hgbotStatusscheduled => closed
2024-04-25 08:27hgbotNote Added: 0163718
2024-09-12 06:41guillermogilRelationship addedhas duplicate 0056421
2024-09-12 08:33Rajesh_18Statusclosed => new
2024-09-12 08:33Rajesh_18Resolutionfixed => open
2024-09-12 08:33Rajesh_18Statusnew => scheduled
2024-09-12 08:33Rajesh_18Statusscheduled => resolved
2024-09-12 08:33Rajesh_18Resolutionopen => fixed
2024-09-12 08:34Rajesh_18Review Assigned To => guillermogil
2024-09-12 08:34Rajesh_18Statusresolved => closed

Notes
(0162734)
hgbot   
2024-03-28 07:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/314 [^]
(0163546)
hgbot   
2024-04-22 18:16   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/314 [^]
(0163547)
hgbot   
2024-04-22 18:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: e272772854a8c8e90f285dedea72a834ac8b7011
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 22-04-2024 16:15:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/e272772854a8c8e90f285dedea72a834ac8b7011 [^]

Fixed ISSUE-54967: Giftcard template used dynamically.

---
M src/org/openbravo/retail/giftcards/FindGiftCardsProperties.java
M web-jspack/org.openbravo.retail.giftcards/src/model/messages/MessagesUtils.js
M web-jspack/org.openbravo.retail.giftcards/src/model/messages/__test__/MessagesUtils.test.js
---
(0163649)
kchoperena   
2024-04-24 11:52   
The fix is not working correctly when there is more than one gift card configured with the template. The subquery is raising an error because it is not linked to the gift card id and the query is expecting only one result

Caused by: org.postgresql.util.PSQLException: ERROR: more than one row returned by a subquery used as an expression
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2676) ~[postgresql-42.5.0.jar:42.5.0]

You should refactor this part to include the link with the m_product_id of the giftcard
(0163656)
hgbot   
2024-04-24 13:22   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/318 [^]
(0163717)
hgbot   
2024-04-25 08:27   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/318 [^]
(0163718)
hgbot   
2024-04-25 08:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 10caf8304357bed52cd3ab7e27981bd514b3e811
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 24-04-2024 16:57:31
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/10caf8304357bed52cd3ab7e27981bd514b3e811 [^]

Fixed ISSUE-54967: Giftcard template used dynamically.

---
M src/org/openbravo/retail/giftcards/FindGiftCardsProperties.java
---