webERP Forum

Full Version: PrintCustTransPortrait.php: Wrong invoice number on screen and TCPDF ERROR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I do a Email Invoice from the Customer Inquiry screen
and I try email invoice number 19

but after it is successful, it displays
"Invoice number 20 has been emailed"
although the email subject is correct

I suspect the culprit is inPrintCustTransPortrait.php line 485
PHP Code:
$FromTransNo++; 
but I don't know where it's supposed to be put, fearing it might cause another bug...

and the other thing, I could only email it correctly after I do
chmod 777 reports
directly (full permission on my folder)
is that supposed to be or do I have other settings I haven't done?
before I give full permission, I kept getting the following error

Code:
TCPDF ERROR: Unable to create output file: companies/abcd/reports/abcd_Invoice_19.pdf

rgards
Hi, James,

The reports directory should be writable for others since it has to be create a file in the directory by Apache or other web server.

And the invoice number is a bug in the file. I'll fix it later.

Best regards!

Exson
Hi, Thomas,

Thank you for your report!

I've fixed the problem. Would you like to test it if it's workable?

Best regards!

Exson

(03-11-2012, 12:04 PM)Exsonqu_Qu Wrote: [ -> ]Hi, James,

The reports directory should be writable for others since it has to be create a file in the directory by Apache or other web server.

And the invoice number is a bug in the file. I'll fix it later.

Best regards!

Exson

Hi Exson,

thanks for your fix.
I just tested it and it's correct now.

tq Smile