Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051644Retail ModulesSend By Emailpublic2023-02-17 14:552023-02-22 07:52
alfonso_alcalde 
ranjith_qualiantech_com 
urgentcriticalalways
closedfixed 
5
 
 
No
0051644: Sending ticket by mail from POS doesn't work, it doesn't send the mail.
Sending ticket by mail from POS doesn't work, it doesn't send the mail.

Tested in live builds Master.

Log found at the time of error:
[Import Entry - 10] ERROR org.openbravo.retail.sendemail.classes.OBSMAIL_MailSender - An error happened picking required data from json
org.codehaus.jettison.json.JSONException: JSONObject["delivery"] not found.
    at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) ~[jettison-1.3-patched.jar:?]
    at org.codehaus.jettison.json.JSONObject.getJSONObject(JSONObject.java:454) ~[jettison-1.3-patched.jar:?]
    at org.openbravo.retail.sendemail.classes.OBSMAIL_MailSender.sendEmail(OBSMAIL_MailSender.java:82) [classes/:?]
    at org.openbravo.retail.sendemail.sync.OBSMAIL_SendEmailFromImportEntry.saveRecord(OBSMAIL_SendEmailFromImportEntry.java:45) [classes/:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:204) [classes/:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:156) [classes/:?]
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:88) [classes/:?]
    at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:57) [classes/:?]
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:421) [classes/:?]
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:338) [classes/:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
    at java.lang.Thread.run(Thread.java:833) [?:?]
1. Select customer.
2. Confirm that the customer has active the sending of invoice by mail, and the touchpoint also.
3. Make the ticket.
4. Complete the ticket.
5. Select sending by mail and destination mail.
6. Send (Doesn't happen)
No tags attached.
has duplicate defect 0050330 closed Retail Sending a ticket by email, is generating an Import Entry in Error status 
Issue History
2023-02-17 14:55alfonso_alcaldeNew Issue
2023-02-17 14:55alfonso_alcaldeAssigned To => Retail
2023-02-17 14:55alfonso_alcaldeTriggers an Emergency Pack => No
2023-02-17 15:00alfonso_alcaldeSummarySend ticket by mail => Sending ticket by mail from POS doesn't work, it doesn't send the mail.
2023-02-20 09:08ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-02-20 09:08ranjith_qualiantech_comStatusnew => scheduled
2023-02-20 14:43hgbotNote Added: 0146786
2023-02-20 16:17marvintmRelationship addedhas duplicate 0050330
2023-02-20 16:18hgbotResolutionopen => fixed
2023-02-20 16:18hgbotStatusscheduled => closed
2023-02-20 16:18hgbotNote Added: 0146792
2023-02-20 16:18hgbotNote Added: 0146793
2023-02-21 17:32hgbotNote Added: 0146831
2023-02-21 17:32hgbotNote Added: 0146832
2023-02-22 07:52hgbotNote Added: 0146852
2023-02-22 07:52hgbotNote Added: 0146853
2023-02-22 07:52hgbotNote Added: 0146854
2023-02-22 07:52hgbotNote Added: 0146855
2023-03-07 09:19caristuRelationship addedblocks 0051176
2023-03-07 09:19caristuRelationship deletedblocks 0051176

Notes
(0146786)
hgbot   
2023-02-20 14:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/merge_requests/15 [^]
(0146792)
hgbot   
2023-02-20 16:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail [^]
Changeset: 47f0baa232b1102b2bcfd1814903a3f1b0cee613
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 20-02-2023 15:31:06
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/commit/47f0baa232b1102b2bcfd1814903a3f1b0cee613 [^]

Fixed ISSUE-51644: Mail Import Entry should not be created when completing order

---
M src/org/openbravo/retail/sendemail/hooks_implementations/OBSMAIL_OrderLoaderHookImplementation.java
---
(0146793)
hgbot   
2023-02-20 16:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/merge_requests/15 [^]
(0146831)
hgbot   
2023-02-21 17:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/476 [^]
(0146832)
hgbot   
2023-02-21 17:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1073 [^]
(0146852)
hgbot   
2023-02-22 07:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: d8764d21612190e59d734610e6cb671aa936165a
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 22-02-2023 06:52:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/d8764d21612190e59d734610e6cb671aa936165a [^]

Related to ISSUE-51644: Add Org & user info to delivery document json data
* When processing delivery document in DataSynchronizationProcess, then
  OBContext will be updated based on json data org and user

---
M web/org.openbravo.retail.posterminal/app/model/business-logic/utils/Util.js
---
(0146853)
hgbot   
2023-02-22 07:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1073 [^]
(0146854)
hgbot   
2023-02-22 07:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 28f751db38c80f30b797b1ce9a7dbb6745eeaf77
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 21-02-2023 17:49:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/28f751db38c80f30b797b1ce9a7dbb6745eeaf77 [^]

Related to ISSUE-51644: Add Org & user info to delivery document json data

---
M src/org/openbravo/mobile/core/importprocess/DeliverDocumentImportEntryProcessor.java
---
(0146855)
hgbot   
2023-02-22 07:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/476 [^]