Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025512Openbravo ERPA. Platformpublic2014-01-20 11:122014-03-06 10:28
caristu 
shankarb 
highminoralways
closedfixed 
5
pi 
3.0PR14Q23.0PR14Q2 
alostale
Core
No
0025512: Not possible to use different email definitions when sending multiple documents by email
Is not possible to use different email definitions when sending multiple documents by email, the default email definition is used for populating the email pop-up. And this is the information that will be sent.

So, this causes that sending multiple documents is not working in different cases:

a) If we send different document types.

b) If we have an email definition for different languages depending on the business partner is not possible to use a different definition depending on it.
As system admin:
1) Display the Language field for the Business Partner header
As group admin:
2) Create a business partner with English language
3) Create another business partner with Spanish language
4) Create two email definitions for the Standard Order document type, one for English language and the other one for Spanish
5) Create two sales order, one for the every business partner.
6) Send by email the sales orders individually. Notice that the email definition is chosen correctly depending on the business partner language.
7) Send by email the two sales order at the same time. Notice that the default email definition is used for both.
If the email template and business partner language is the same, it will work as always: showing the email template

If the email templates are different or the business partner language is different then:

1) Show a message: "Different email templates selected, if you click OK default email templates for every document will be used"
2) Don't show the pop-up and send the emails using the default email templates

This can be done in the line 921 of the PrintController class, because currently the first template in the report array is selected using: reports.values().iterator().next().getEmailDefinition();
No tags attached.
related to defect 00269863.0PR14Q4 closed shankarb Some characters are not printed after switching the template to use in the Email options window 
related to feature request 0030758 new Triage Finance Send Documents via email from grid in multiple languages. 
Issue History
2014-01-20 11:12caristuNew Issue
2014-01-20 11:12caristuAssigned To => AugustoMauch
2014-01-20 11:12caristuModules => Core
2014-01-20 11:12caristuTriggers an Emergency Pack => No
2014-01-20 11:13caristuIssue Monitored: networkb
2014-01-20 11:13caristuDescription Updatedbug_revision_view_page.php?rev_id=5351#r5351
2014-02-06 10:53caristuResolution time => 1394578800
2014-02-06 10:53caristuTypedesign defect => defect
2014-02-06 10:53caristuversion => pi
2014-02-06 10:53caristuTarget Version => 3.0MP32
2014-02-06 10:53caristuDescription Updatedbug_revision_view_page.php?rev_id=5433#r5433
2014-02-06 10:53caristuProposed Solution updated
2014-02-06 12:38daniOpenbravoIssue Monitored: daniOpenbravo
2014-02-09 12:26shankarbAssigned ToAugustoMauch => shankarb
2014-02-24 09:56shankarbReview Assigned To => alostale
2014-02-24 09:58hgbotCheckin
2014-02-24 09:58hgbotNote Added: 0064506
2014-02-24 09:58hgbotStatusnew => resolved
2014-02-24 09:58hgbotResolutionopen => fixed
2014-02-24 09:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ab055e5f30e85c08dc1769f2bfb68b77f9c540bd [^]
2014-02-24 11:27hgbotCheckin
2014-02-24 11:27hgbotNote Added: 0064517
2014-02-25 20:14hudsonbotCheckin
2014-02-25 20:14hudsonbotNote Added: 0064585
2014-02-25 20:14hudsonbotCheckin
2014-02-25 20:14hudsonbotNote Added: 0064586
2014-03-06 10:28alostaleStatusresolved => closed
2014-03-06 10:28alostaleFixed in Version => PR14Q2
2014-07-01 13:15caristuRelationship addedrelated to 0026986
2015-09-03 19:13mfuertesRelationship addedrelated to 0030758

Notes
(0064506)
hgbot   
2014-02-24 09:58   
Repository: erp/devel/pi
Changeset: ab055e5f30e85c08dc1769f2bfb68b77f9c540bd
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Feb 24 14:15:24 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/ab055e5f30e85c08dc1769f2bfb68b77f9c540bd [^]

Fixes Issue 0025512: Not possible to use different email definitions when sending multiple documents by email

Handled the following cases:
Case 1: When document types are different
1. Emails are sent using the default email configurations.
2. Subject and Message body are not editable

Case 2: When there are multiple email configurations for the same document type
1. Option to choose default email configuration.
2. Option to select other email configurations.
3. Subject and message body are editable.

---
M src/org/openbravo/erpCommon/utility/reporting/EmailDefinition_data.xsql
M src/org/openbravo/erpCommon/utility/reporting/Report.java
M src/org/openbravo/erpCommon/utility/reporting/TemplateInfo.java
M src/org/openbravo/erpCommon/utility/reporting/printing/EmailOptions.html
M src/org/openbravo/erpCommon/utility/reporting/printing/EmailOptions.xml
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0064517)
hgbot   
2014-02-24 11:27   
Repository: erp/devel/pi
Changeset: 0a97d797843c7630eaf32304d0efb273767b12f6
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Feb 24 15:56:38 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/0a97d797843c7630eaf32304d0efb273767b12f6 [^]

Related to Issue 25512 : Added text interface definitions

---
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
---
(0064585)
hudsonbot   
2014-02-25 20:14   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7579d638a80a [^]
Maturity status: Test
(0064586)
hudsonbot   
2014-02-25 20:14   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7579d638a80a [^]
Maturity status: Test