Openbravo Issue Tracking System - POS2
View Issue Details
0054886POS2POSpublic2024-02-29 12:002024-03-15 08:33
caristu 
sreehari 
immediatemajoralways
closedfixed 
5
 
24Q1.124Q1.1 
guillermogil
2023-12-26
24Q1
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c9cba9d724e026b24b669e75d36fa581878d0c8b [^]
No
0054886: 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.
blocks defect 0054796 closed sreehari Error sending PDF templates by email 
Issue History
2024-03-07 18:07guilleaerTypedefect => backport
2024-03-07 18:07guilleaerTarget Version => 24Q1.1
2024-03-07 18:09guilleaerAssigned ToRetail => caristu
2024-03-14 17:09guilleaerAssigned Tocaristu => sreehari
2024-03-15 08:33hgbotResolutionopen => fixed
2024-03-15 08:33hgbotStatusscheduled => resolved
2024-03-15 08:33hgbotFixed in Version => RR24Q1.1
2024-03-15 08:33hgbotNote Added: 0162211
2024-03-15 08:33hgbotNote Added: 0162212
2024-03-15 08:33guillermogilReview Assigned To => guillermogil
2024-03-15 08:33guillermogilStatusresolved => closed
2024-03-15 08:33guillermogilFixed in VersionRR24Q1.1 => 24Q1.1

Notes
(0162211)
hgbot   
2024-03-15 08:33   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 5f146874b655b071890eda11469db6157acd4072
Author: Guillermo Gil Lapuente <g.gil@orisha.com>
Date: 15-03-2024 07:33:18
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/5f146874b655b071890eda11469db6157acd4072 [^]

Fixes ISSUE-54886: Error sending PDF templates by email: cannot send PDF reports by email

---
M web/org.openbravo.retail.posterminal/app/model/business-logic/utils/Util.js
---
(0162212)
hgbot   
2024-03-15 08:33   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c76a2340553c3b045b08efd72dcf4c0bba600582
Author: Guillermo Gil Lapuente <g.gil@orisha.com>
Date: 15-03-2024 07:33:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c76a2340553c3b045b08efd72dcf4c0bba600582 [^]

Related to ISSUE-54886: avoid potential NPE in PDF SendEmail

---
M src/org/openbravo/pos2/mailing/SendEmailLoader.java
---