Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023305Openbravo ERP07. Sales managementpublic2013-03-14 13:022013-04-26 23:54
egoitz 
pramakrishnan 
urgentmajoralways
closedfixed 
5
 
3.0MP23 
Core
No
0023305: When sending multiple documents by email the process does not send properly if the contacts of the partnes have the same name
When sending multiple documents by email the process does not send properly if the contacts of the partners have the same name.

If i select 3 invoices to send email for the partners, if the three partners are different, but 2 of them have a contact with the same name, the result when sending the invoice is:
3 documents sent to 2 partners.
This is because the process send mails for the contacts and check if the name is different but not the email.
-Define the email server
-Create three partners
-Create three contacts for that partners adding a email for each one
-Two of that contacts should have the same name.
-Create one invoice for each partner and complete it
-Select on the grid the three invoices and click on send email.

*See that 3 documents are sent to 2 customers
ON PrintController.java file
see the method
getHiddenTags

replace
      final String customer = documentData.contactName;
with
      final String customer = documentData.contactEmail;

The same problem could happen with the salesrep

in this case the solution could be on the same method to replace
      final String salesRep = documentData.salesrepName;
with
       final String salesRep = documentData.salesrepEmail;
No tags attached.
Issue History
2013-03-14 13:02egoitzNew Issue
2013-03-14 13:02egoitzAssigned To => dmiguelez
2013-03-14 13:02egoitzModules => Core
2013-03-14 13:02egoitzResolution time => 1364598000
2013-03-14 13:02egoitzTriggers an Emergency Pack => No
2013-03-14 13:03egoitzAssigned Todmiguelez => ioritzCia
2013-03-14 18:40dmiguelezAssigned ToioritzCia => jonalegriaesarte
2013-04-02 18:50jonalegriaesarteTarget Version3.0MP22 => 3.0MP23
2013-04-18 10:13jonalegriaesarteAssigned Tojonalegriaesarte => dmiguelez
2013-04-23 12:14pramakrishnanAssigned Todmiguelez => pramakrishnan
2013-04-23 12:14pramakrishnanStatusnew => scheduled
2013-04-23 12:14pramakrishnanfix_in_branch => pi
2013-04-24 10:33pramakrishnanNote Added: 0058164
2013-04-25 13:42hgbotCheckin
2013-04-25 13:42hgbotNote Added: 0058249
2013-04-25 13:42hgbotStatusscheduled => resolved
2013-04-25 13:42hgbotResolutionopen => fixed
2013-04-25 13:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/698aa79b72aef989c5158074f2dc676f92df6b8d [^]
2013-04-25 13:42hgbotCheckin
2013-04-25 13:42hgbotNote Added: 0058250
2013-04-25 13:43dmiguelezNote Added: 0058251
2013-04-25 13:43dmiguelezStatusresolved => closed
2013-04-26 23:54hudsonbotCheckin
2013-04-26 23:54hudsonbotNote Added: 0058285
2013-04-26 23:54hudsonbotCheckin
2013-04-26 23:54hudsonbotNote Added: 0058286

Notes
(0058164)
pramakrishnan   
2013-04-24 10:33   
Test Plan:
-Define the email server
-Create three partners
-Create three contacts for that partners adding a email for each one
-Two of that contacts should have the same name.
-Create one invoice for each partner and complete it
-Select on the grid the three invoices and click on send email.

*See that 3 documents are sent to 3 customers
(0058249)
hgbot   
2013-04-25 13:42   
Repository: erp/devel/pi
Changeset: 698aa79b72aef989c5158074f2dc676f92df6b8d
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Apr 24 14:01:26 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/698aa79b72aef989c5158074f2dc676f92df6b8d [^]

Fixes Issue 23305: Error sending multiple documents by email
The process does not send properly if the contacts of the partners have the same name

---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0058250)
hgbot   
2013-04-25 13:42   
Repository: erp/devel/pi
Changeset: 474850a4bb4845ad001c9d06212830de3a69e3a1
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Apr 25 13:41:50 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/474850a4bb4845ad001c9d06212830de3a69e3a1 [^]

Related to Issue 23305. Shows name in message instead of mail address.

---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0058251)
dmiguelez   
2013-04-25 13:43   
Code Review + Testing Ok
(0058285)
hudsonbot   
2013-04-26 23:54   
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/1db7e66bd5c5 [^]

Maturity status: Test
(0058286)
hudsonbot   
2013-04-26 23:54   
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/1db7e66bd5c5 [^]

Maturity status: Test