Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058350
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2025-03-26 16:122025-03-27 11:58
ReportersofidossantView Statuspublic 
Assigned ToRetail 
PriorityhighResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version25Q1SCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerOBPS
Support ticket125015
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058350: Error Sending Email

DescriptionWhen we make a sale in pos2 and we want to send the email it fails us:

2025-03-26 09:46:01,267 [Import Entry - 3] ERROR org.openbravo.pos2.mailing.Mailer - Error while sending the Email,
org.openbravo.erpCommon.utility.reporting.ReportingException: Error retrieving report data with id 15571BD931FD56DEC77EEC3579EF4E36
at org.openbravo.erpCommon.utility.reporting.Report.(Report.java:159) ~[classes/:?]
at org.openbravo.erpCommon.utility.reporting.Report.(Report.java:92) ~[classes/:?]
at org.openbravo.pos2.mailing.Mailer.sendTicketByEmail(Mailer.java:105) [classes/:?]
at org.openbravo.pos2.mailing.Mailer.sendEmail(Mailer.java:71) [classes/:?]
at org.openbravo.pos2.mailing.SendEmailLoader.saveRecord(SendEmailLoader.java:117) [classes/:?]
at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:214) [classes/:?]
at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:165) [classes/:?]
at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:97) [classes/:?]
at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:55) [classes/:?]
at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:447) [classes/:?]
at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:370) [classes/:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Steps To Reproduce1- Configure client and check to sent email
2- Go to the pos2 and create a sales order, pay with cash.
3- Select the option Print + Send Email

See the error.
Proposed SolutionPatch

--- a/src/org/openbravo/pos2/mailing/Mailer.java 2025-03-26 10:55:47.579108984 +0100
+++ b/src/org/openbravo/pos2/mailing/Mailer.java 2025-03-26 12:31:39.315819233 +0100
@@ -102,8 +102,8 @@
     try {
       if (emailTemplate != null) {
         DocumentType documentType = DocumentType.SALESORDER;
- Report report = new Report(documentType, order.getString("id"), null, "default", false,
- OutputTypeEnum.EMAIL);
+ Report report = new Report(documentType, order.optString("orderId", order.getString("id")),
+ null, "default", false, OutputTypeEnum.EMAIL);
         emailInfoBuilder
             .setContent(replaceContentWithParameters(emailTemplate.getBody(), order, report));
         emailInfoBuilder
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0177336)
hgbot (developer)
2025-03-27 11:58

Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24068 [^]

- Issue History
Date Modified Username Field Change
2025-03-26 16:12 sofidossant New Issue
2025-03-26 16:12 sofidossant Assigned To => Retail
2025-03-26 16:12 sofidossant OBNetwork customer => OBPS
2025-03-26 16:12 sofidossant Support ticket => 125015
2025-03-26 16:12 sofidossant Triggers an Emergency Pack => No
2025-03-26 16:49 Practics Issue Monitored: Practics
2025-03-27 11:58 hgbot Note Added: 0177336
2025-03-27 11:58 hgbot Status new => closed
2025-03-27 11:58 hgbot Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker