Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058022Retail ModulesSend By Emailpublic2025-02-18 17:212025-02-20 09:01
sofidossant 
Triage Platform Base 
normalminoralways
newopen 
5
RR24Q2 
 
No
0058022: BackOffice error when using the Prefix (@documentNo@)
 When we configure in BackOffice, in the DocumentType - ReportTemplate - EmailDefinition, the Prefix @documentNo@ the mail that arrives from POS2 works correctly, but if we send it from the backoffice it is sent incorrectly.
If we use the prefix @our_ref@ it works in the back office but does not work in POS2.
I have the version 24q2 in my local and I added 3 modules:
org.openbravo.mobile.core.transformxmltopdf
org.openbravo.mobile.core.transformjrxmltopdf
org.openbravo.retail.sendemail

In Channel touch point type, I did the configuration in the field Send Documents By Mail checked.
Config of the business partner, example Arturo montoro, add the check Invoice via email, and in the tab contact I added my email.
Configuration of the email in the client window
Check the configuration in the Document Type - ReportTemplate - EmailDefinition for Orders in Vall Blanca Store, the Prefix @documentNo


In the pos2, I did a sales with the B.P Arturo montoro, select the products for the sales order and send the mail from POS2.
We see in the email, and the subject is correct.

In the case of the Back office, we generate the Sale order and send the mail and the name that arrives to the mail is wrong
No tags attached.
png saleOrderMAIL.png (221,213) 2025-02-18 17:22
https://issues.openbravo.com/file_download.php?file_id=20933&type=bug
png

png mailPOS2.png (51,316) 2025-02-18 17:23
https://issues.openbravo.com/file_download.php?file_id=20934&type=bug
png

png mailBACKOFFICE.png (47,108) 2025-02-18 17:23
https://issues.openbravo.com/file_download.php?file_id=20935&type=bug
png

png documentTypeMAIL.png (101,526) 2025-02-18 17:24
https://issues.openbravo.com/file_download.php?file_id=20936&type=bug
png

png bussinesPartnerARTUROMAIL.png (139,212) 2025-02-18 17:24
https://issues.openbravo.com/file_download.php?file_id=20937&type=bug
png
Issue History
2025-02-18 17:21sofidossantNew Issue
2025-02-18 17:21sofidossantAssigned To => Retail
2025-02-18 17:21sofidossantTriggers an Emergency Pack => No
2025-02-18 17:22sofidossantFile Added: saleOrderMAIL.png
2025-02-18 17:23sofidossantFile Added: mailPOS2.png
2025-02-18 17:23sofidossantFile Added: mailBACKOFFICE.png
2025-02-18 17:24sofidossantFile Added: documentTypeMAIL.png
2025-02-18 17:24sofidossantFile Added: bussinesPartnerARTUROMAIL.png
2025-02-19 06:44jorgewederagoNote Added: 0175840
2025-02-19 06:44jorgewederagoAssigned ToRetail => sofidossant
2025-02-19 06:44jorgewederagoStatusnew => feedback
2025-02-19 22:43sofidossantStatusfeedback => new
2025-02-19 22:43sofidossantversionpi => RR24Q2
2025-02-19 22:43sofidossantSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29268#r29268
2025-02-20 07:11jorgewederagoNote Added: 0175944
2025-02-20 07:11jorgewederagoStatusnew => feedback
2025-02-20 09:01guillermogilNote Deleted: 0175944
2025-02-20 09:01guillermogilAssigned Tosofidossant => Triage Platform Base
2025-02-20 09:01guillermogilStatusfeedback => new

Notes
(0175840)
jorgewederago   
2025-02-19 06:44   
Hello, we are lacking a lot of information in order to understand the issue.
1.-Which version are we talking about? Have you tried to reproduce it in master?
2.-You are talking about "Search for b.p with the check "Invoice via Email" is YES". We cannot find that in livebuilds in master
3.-We have tried both @our_ref@ & @documentNo@ and we are getting the proper email from POS (we cannot reproduce the backoffice part because we are not able to find the point 2)