Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035319Openbravo ERPA. Platformpublic2017-02-20 18:402017-02-24 09:58
malsasua 
caristu 
immediateminoralways
closedfixed 
5
 
3.0PR16Q4.33.0PR16Q4.3 
alostale
Core
Production - Confirmed Stable
2016-04-18
3.0PR16Q3
https://code.openbravo.com/erp/devel/pi/rev/82f27ac1b1497b3a82646b140ab1b6e048f2b766 [^]
No
0035319: invoice PDF is not attached from "email" button in sales invoice window
in sales invoice window, it is possible to send one email with the PDF invoice, clicking in "email" button (in toolbar).

From 16Q3, the email is sent, but the PDF is not attached
in "Client" window, "Email Configuration" tab, configure it
in Sales Invoice window, select one record, and click in "email" button. Click in option "attached document" (see attachment)
sent email

the email is sent, but PDF is not attached to the email
No tags attached.
blocks defect 0035313 closed caristu invoice PDF is not attached from "email" button in sales invoice window 
Issue History
2017-02-21 09:34caristuTypedefect => backport
2017-02-21 09:34caristuTarget Version => 3.0PR16Q4.5
2017-02-21 14:13hgbotCheckin
2017-02-21 14:13hgbotNote Added: 0094513
2017-02-21 14:13hgbotStatusscheduled => resolved
2017-02-21 14:13hgbotResolutionopen => fixed
2017-02-21 14:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/2808d4063ad656f223cf261900a27eaed1d9bd34 [^]
2017-02-21 14:13caristuTarget Version3.0PR16Q4.5 => 3.0PR16Q4.3
2017-02-21 16:03caristuReview Assigned To => alostale
2017-02-21 16:04caristuAssigned Toplatform => caristu
2017-02-24 09:58alostaleNote Added: 0094600
2017-02-24 09:58alostaleStatusresolved => closed
2017-02-24 09:58alostaleFixed in Version => 3.0PR16Q4.3

Notes
(0094513)
hgbot   
2017-02-21 14:13   
Repository: erp/backports/3.0PR16Q4.3
Changeset: 2808d4063ad656f223cf261900a27eaed1d9bd34
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Feb 21 14:12:18 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/2808d4063ad656f223cf261900a27eaed1d9bd34 [^]

fixes issue 35319: documents were not being attached after send them by e-mail

The CoreAttachImplementation class is deleting the original report file after completing the upload process. When attaching a document using the e-mail pop-up this is done before attaching the document into the e-mail. This explains why the document was not being received on the e-mail.

To avoid this problem, now a copy of the original document is sent to the AttachImplementationManager, this way the original file will never be deleted by an upload process handler.

Together with this, now when attaching a document after printing (not by e-mail) we have to delete the original file because in other case it will be kept on disk.

---
M src/org/openbravo/erpCommon/utility/reporting/ReportManager.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0094600)
alostale   
2017-02-24 09:58   
code reviewed + tested