Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PrintCustTransPortrait.php: Wrong invoice number on screen and TCPDF ERROR
03-10-2012, 05:33 AM,
#1
PrintCustTransPortrait.php: Wrong invoice number on screen and TCPDF ERROR
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
Thomas Timothy Lie
Bali Open Source Solution, Indonesia
[url=http://www.baliboss.com]http://www.baliboss.com[/url]
Reply
03-11-2012, 12:04 PM,
#2
RE: PrintCustTransPortrait.php: Wrong invoice number on screen and TCPDF ERROR
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
Reply
03-12-2012, 08:18 PM,
#3
RE: PrintCustTransPortrait.php: Wrong invoice number on screen and TCPDF ERROR
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



Attached Files
.php   PrintCustTransPortrait.php (Size: 45.76 KB / Downloads: 4)
Reply
03-13-2012, 02:20 AM,
#4
RE: PrintCustTransPortrait.php: Wrong invoice number on screen and TCPDF ERROR
Hi Exson,

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

tq Smile
Thomas Timothy Lie
Bali Open Source Solution, Indonesia
[url=http://www.baliboss.com]http://www.baliboss.com[/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)