Openbravo Issue Tracking System - POS2
View Issue Details
0054796POS2POSpublic2024-02-29 12:002024-03-15 08:32
caristu 
sreehari 
immediatemajoralways
closedfixed 
5
 
 
2023-12-26
24Q1
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c9cba9d724e026b24b669e75d36fa581878d0c8b [^]
No
0054796: Error sending PDF templates by email
A NPE exception is causing that PDF templates cannot be sent by email
Configuration:
1- Go to the organization window. Select the organization of your terminal and set a PDF template in the "Print Ticket Template" field
2- Go the touchpoint type window. Select the type of your terminal and enable the Send delivery option
Steps:
1- Login in the POS using the configured terminal
2- Create a ticket, pay it and send the send email option
3- Note that the email is not sent. The process fails at this point[1] due to a NPE

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/c9cba9d724e026b24b669e75d36fa581878d0c8b/src/org/openbravo/pos2/mailing/SendEmailLoader.java#L128 [^]
No tags attached.
depends on backport 005488624Q1.1 closed sreehari Error sending PDF templates by email 
caused by defect 0054150 closed prakashmurugesan88 [RM-10273] - Gift Cards / Credit notes are not sent by email 
Issue History
2024-02-29 12:00caristuNew Issue
2024-02-29 12:00caristuAssigned To => Triage Platform Base
2024-02-29 12:00caristuRegression date => 2023-12-26
2024-02-29 12:00caristuRegression introduced in release => 24Q1
2024-02-29 12:00caristuRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c9cba9d724e026b24b669e75d36fa581878d0c8b [^]
2024-02-29 12:00caristuTriggers an Emergency Pack => No
2024-02-29 12:00caristuIssue generated from0054150
2024-02-29 12:00caristuRelationship addedcaused by 0054150
2024-02-29 12:04hgbotNote Added: 0161426
2024-02-29 12:08hgbotNote Added: 0161427
2024-02-29 12:09caristuAssigned ToTriage Platform Base => Retail
2024-03-06 17:32guilleaerStatusnew => acknowledged
2024-03-07 18:07guilleaerStatusacknowledged => scheduled
2024-03-07 18:09guilleaerAssigned ToRetail => caristu
2024-03-14 17:09guilleaerAssigned Tocaristu => sreehari
2024-03-15 08:32hgbotNote Added: 0162207
2024-03-15 08:32hgbotNote Added: 0162208
2024-03-15 08:32hgbotNote Added: 0162209
2024-03-15 08:32hgbotResolutionopen => fixed
2024-03-15 08:32hgbotStatusscheduled => closed
2024-03-15 08:32hgbotFixed in Version => RR24Q2
2024-03-15 08:32hgbotNote Added: 0162210

Notes
(0161426)
hgbot   
2024-02-29 12:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1494 [^]
(0161427)
hgbot   
2024-02-29 12:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2462 [^]
(0162207)
hgbot   
2024-03-15 08:32   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 5f9662cb696b0539dceb19a969d8be2bb26c2323
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 15-03-2024 07:32:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/5f9662cb696b0539dceb19a969d8be2bb26c2323 [^]

Related to BUG-54796: avoid potential NPE in Send Email PDF

---
M src/org/openbravo/pos2/mailing/SendEmailLoader.java
---
(0162208)
hgbot   
2024-03-15 08:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2462 [^]
(0162209)
hgbot   
2024-03-15 08:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1494 [^]
(0162210)
hgbot   
2024-03-15 08:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: a321d8bddb2a5f865392eae2932bc07911c0297d
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 15-03-2024 07:32:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/a321d8bddb2a5f865392eae2932bc07911c0297d [^]

Fixes ISSUE-54796: cannot send PDF reports by email

---
M web/org.openbravo.retail.posterminal/app/model/business-logic/utils/Util.js
---