|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
pdf Invoice not Printing Narrative EntryI just created my 1st invoice in 3.11. I was using 3.071 before.
I had entered a comment under a few line items and when I went to print the invoice in pdf format and the comments / narrative entry was not there. So I checked the html version of the invoice and the comments were there. I checked the system configuration and I did and do have "allow narrative entry" selected. Help get this working again please. |
|
|
Re: pdf Invoice not Printing Narrative EntryI found that I had to change some code back to the old version I was running.
Here is the section of code that had to be changed in PrintCustTrans.php: $YPos -= ($line_height);
$Narrative = $myrow2['narrative']; while (strlen($Narrative)>1){
// These lines seem not to be printing the narative. Reverting to old code. Gilles Deacur // $lines=explode('\r\n',$Narrative);
// for ($i=0;$i<sizeOf($lines);$i++) { // while (strlen($lines[$i])>1){
if ($YPos-$line_height <= $Bottom_Margin){ /* head up a new invoice/credit note page */
/*draw the vertical column lines right to the bottom */ PrintLinesToBottom ();
include ('includes/PDFTransPageHeader.inc');
} //end if need a new page headed up /*increment a line down for the next line item */
if (strlen($Narrative)>1){ $Narrative = $pdf->addTextWrap($Left_Margin+100,$YPos,245,$FontSize,$Narrative);
// Reverting to old code. Gilles Deacur // if (strlen($lines[$i])>1){
// $lines[$i] = $pdf->addTextWrap($Left_Margin+100,$YPos,245,$FontSize,stripslashes($lines[$i])); }
$YPos -= ($line_height); } // Reverting to old code. Gilles Deacur
// } if ($YPos <= $Bottom_Margin){ /* head up a new invoice/credit note page */
/*draw the vertical column lines right to the bottom */ PrintLinesToBottom ();
include ('includes/PDFTransPageHeader.inc'); } //end if need a new page headed up
Also please note that I had to change every instance of PrintCustTransPortrait.php to PrintCustTrans.php There's some sort of error that produces a blank invoice in the Portrait file. I also had to change the link for a .pdf file in CustomerInquiry.php from the Portrait link to PrintCustTrans.php
Now my .pdf files open without a problem and my narrative is intact. Please review for correction and submission for code change. Thanks. Gilles Deacur On Fri, Oct 9, 2009 at 10:36 AM, sunshine33777 <tronno22556@...> wrote:
-- Sunshine Locksmith Team -Tampa Bay Area Locksmiths http://www.sunshinelocksmith.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ web-ERP-users mailing list web-ERP-users@... https://lists.sourceforge.net/lists/listinfo/web-erp-users |
|
|
Re: pdf Invoice not Printing Narrative EntryHi Gilles,
I can't replicate this. I have set the invoice layout to portrait, created an invoice with a narrative and then created the pdf. This seems to work for me. Am I doing something differently to you? Tim 2009/10/10 Gilles Deacur <tronno22556@...>: > I found that I had to change some code back to the old version I was > running. > Here is the section of code that had to be changed in PrintCustTrans.php: > $YPos -= ($line_height); > $Narrative = $myrow2['narrative']; > while (strlen($Narrative)>1){ > // These lines seem not to be printing the narative. Reverting to old code. > Gilles Deacur > // $lines=explode('\r\n',$Narrative); > // for ($i=0;$i<sizeOf($lines);$i++) { > // while (strlen($lines[$i])>1){ > if ($YPos-$line_height <= $Bottom_Margin){ > /* head up a new invoice/credit note page */ > /*draw the vertical column lines right to the bottom */ > PrintLinesToBottom (); > include ('includes/PDFTransPageHeader.inc'); > } //end if need a new page headed up > /*increment a line down for the next line item */ > if (strlen($Narrative)>1){ > $Narrative = > $pdf->addTextWrap($Left_Margin+100,$YPos,245,$FontSize,$Narrative); > // Reverting to old code. Gilles Deacur > // if (strlen($lines[$i])>1){ > // $lines[$i] = > $pdf->addTextWrap($Left_Margin+100,$YPos,245,$FontSize,stripslashes($lines[$i])); > } > $YPos -= ($line_height); > } > // Reverting to old code. Gilles Deacur > // } > if ($YPos <= $Bottom_Margin){ > /* head up a new invoice/credit note page */ > /*draw the vertical column lines right to the bottom */ > PrintLinesToBottom (); > include ('includes/PDFTransPageHeader.inc'); > } //end if need a new page headed up > > > Also please note that I had to change every instance of > PrintCustTransPortrait.php to PrintCustTrans.php There's some sort of error > that produces a blank invoice in the Portrait file. I also had to change > the link for a .pdf file in CustomerInquiry.php from the Portrait link to > PrintCustTrans.php > > > Now my .pdf files open without a problem and my narrative is intact. > Please review for correction and submission for code change. > Thanks. > Gilles Deacur > > > On Fri, Oct 9, 2009 at 10:36 AM, sunshine33777 <tronno22556@...> > wrote: >> >> I just created my 1st invoice in 3.11. I was using 3.071 before. >> >> I had entered a comment under a few line items and when I went to print >> the >> invoice in pdf format and the comments / narrative entry was not there. >> >> So I checked the html version of the invoice and the comments were there. >> >> I checked the system configuration and I did and do have "allow narrative >> entry" selected. >> >> Help get this working again please. >> -- >> View this message in context: >> http://www.nabble.com/pdf-Invoice-not-Printing-Narrative-Entry-tp25822284p25822284.html >> Sent from the web-erp-users mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> web-ERP-users mailing list >> web-ERP-users@... >> https://lists.sourceforge.net/lists/listinfo/web-erp-users > > > > -- > Sunshine Locksmith Team -Tampa Bay Area Locksmiths > http://www.sunshinelocksmith.com > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > web-ERP-users mailing list > web-ERP-users@... > https://lists.sourceforge.net/lists/listinfo/web-erp-users > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ web-ERP-users mailing list web-ERP-users@... https://lists.sourceforge.net/lists/listinfo/web-erp-users |
| Free embeddable forum powered by Nabble | Forum Help |