Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009061Openbravo ERP07. Sales managementpublic2009-05-16 20:232009-09-07 14:04
jreymol 
iperdomo 
urgentmajoralways
closedfixed 
20rPath Linux
2.50MP1 
2.50MP6 
Core
No
0009061: Archive Sales Order while printing fails
I have just downloaded vmware virtual machine Openbravo 2.50 MP1

When I try to print a Sales Order I get a pop up saying:

Do you want to archive this document after printing?
This will attach the document to the record.

I can click on "no, just print it" any number of times and always I get a PDF with sales order. But If I click on "Yes" I get an invalid PDF and now even "no, just print it" button doesn't work any more.
Login as Openbravo/openbravo
Chage role to Big Bazaar User Organization California
Goto Sales Management || Transactions || Sales Order
Select any sales order and click on Print Icon
No tags attached.
duplicate of defect 0008602 closed iperdomo Randomly the pdf that is generated cannot be printed 
has duplicate defect 0009871 closed rafaroda Error when "printing and attaching" the generated PDF document 
Issue History
2009-05-16 20:23jreymolNew Issue
2009-05-16 20:23jreymolAssigned To => rafaroda
2009-05-18 10:24shuehnerIssue Monitored: shuehner
2009-05-19 23:22jreymolNote Added: 0016477
2009-05-19 23:22jreymolNote Edited: 0016477
2009-05-20 12:14psarobeRegression testing => No
2009-05-20 12:14psarobeRelationship addedduplicate of 0008602
2009-05-20 12:14psarobeStatusnew => closed
2009-05-20 12:14psarobeDuplicate ID0 => 8602
2009-05-20 12:14psarobeResolutionopen => duplicate
2009-05-20 12:24jreymolNote Added: 0016503
2009-05-20 13:11rafarodaNote Added: 0016518
2009-05-20 13:19jreymolStatusclosed => new
2009-05-20 13:19jreymolResolutionduplicate => open
2009-05-20 13:19jreymolNote Added: 0016521
2009-05-21 11:07psarobeStatusnew => closed
2009-05-21 11:07psarobeNote Added: 0016555
2009-05-21 11:07psarobeDuplicate ID8602 => 0
2009-05-21 11:07psarobeResolutionopen => duplicate
2009-05-22 00:00anonymoussf_bug_id0 => 2795094
2009-07-02 11:17jreymolStatusclosed => new
2009-07-02 11:17jreymolResolutionduplicate => open
2009-07-02 11:17jreymolNote Added: 0017754
2009-07-20 22:45psarobeStatusnew => scheduled
2009-07-20 22:45psarobeAssigned Torafaroda => iperdomo
2009-07-20 22:45psarobefix_in_branch => pi
2009-07-20 22:46psarobePrioritynormal => urgent
2009-07-20 22:46psarobeSeverityminor => major
2009-07-20 22:46psarobefix_in_branchpi =>
2009-07-20 23:33psarobeRelationship addedhas duplicate 0009871
2009-08-21 11:54roklenardicNote Added: 0019172
2009-08-25 13:33iciordiaAssigned Toiperdomo => alostale
2009-08-25 13:34iciordiaNote Added: 0019216
2009-08-25 13:35iciordiaAssigned Toalostale => iperdomo
2009-08-30 17:57hgbotCheckin
2009-08-30 17:57hgbotNote Added: 0019282
2009-08-30 17:57hgbotStatusscheduled => resolved
2009-08-30 17:57hgbotResolutionopen => fixed
2009-08-30 17:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9202091048cda48a8ef77299b3e146b87b3c25ef [^]
2009-09-07 14:04sureshbabuStatusresolved => closed
2009-09-07 14:04sureshbabuNote Added: 0019485
2009-09-07 14:04sureshbabuFixed in Version => 2.50MP6

Notes
(0016477)
jreymol   
2009-05-19 23:22   
I think last part of my description have been just resolved:
https://issues.openbravo.com/view.php?id=8602 [^]
0008602: Randomly the pdf that is generated cannot be printed

Before reporting I made some search but didn't see 8602 bug.

If you go to View Issues - Search and type "pdf print" or "pdf printed" (on different searches) issue 8602 will remain elusive. Type "pdf" and you will get 182 issues.

in google I typed:
pdf print attach site:https://issues.openbravo.com [^]

and 8602 it's there first place in the race towards my screen

(0016503)
jreymol   
2009-05-20 12:24   
Hi,

Not so sure this is duplicate of 8602.

8602 is about printing after saving pdf as an attachment.

This is as being unable to archive sales order

regards
(0016518)
rafaroda   
2009-05-20 13:11   
Please re-open the issue if you think that it has not been properly closed.
(0016521)
jreymol   
2009-05-20 13:19   
Reopened because I think this issue is related to 8602 but is not a duplicate of it
(0016555)
psarobe   
2009-05-21 11:07   
Hi jreymol,

We will finally close because it is the same although your explanation is much better. With the fixed in 8602 your issue is solved. It will be in MP2

Thanks a lot for your feedback
(0017754)
jreymol   
2009-07-02 11:17   
I have just downloaded vmware virtual machine Openbravo 2.50 MP2
I logged as Openbravo/openbravo
I changed role to Big Bazzar User Organization Connecticut
I went to Sales Management || Transactions || Sales Order and got first record that showed up: Document No. WO /06 / 937
I clicked Print Icon and a pop up window saying:

===============
Do you want to archive this document after printing?
This will attach the document to the record
===============

I can click serveral times on "No, just print it" button and always get a valid PDF.
When I click on "Yes" an invalid cero byte pdf is created.

Improvement from 2.50MP1 is that now I can click on "No, just print it" and get a valid pdf again.

There's something wrong when saving attachment. Maybe is just about permissions configuration on vmware linux machine (I'm just speculating)
(0019172)
roklenardic   
2009-08-21 11:54   
In MP3, the PDF gets generated correctly, however, if I click Yes (to archive it), the PDF is again generated correctly but it is not attached. No error message appears to the user or can be found in the openbravo.log
(0019216)
iciordia   
2009-08-25 13:34   
Asier,

look at this post: http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid=549512&topicid=7001030 [^]

It seems a different flavor of the same problem.

Ismael
(0019282)
hgbot   
2009-08-30 17:57   
Repository: erp/devel/pi
Changeset: 9202091048cda48a8ef77299b3e146b87b3c25ef
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Sun Aug 30 17:54:48 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9202091048cda48a8ef77299b3e146b87b3c25ef [^]

Fixes issue 9061: Fixes attachment the pdf file when printing

---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
(0019485)
sureshbabu   
2009-09-07 14:04   
tested in PI, able to archive the document after printing.