Well currently the code uses (PrintCustTrans.php)
Code:
$pdf->OutputD($_SESSION['DatabaseName'] . '_' . $InvOrCredit . '_' . $FromTransNo . '.pdf');
So if the name of the company database is say YourCompanyName
and the transaction being printed is an "Invoice" not a "Credit Note"
and the invoice is number 1000
Then the pdf would be named
Code:
YourCompanyName_Invoice_1000.pdf
It sounds as though this is what you want?
perhaps your host is making you use a crazy database name for the company.... in which case you might elect to change $_SESSION['DatabaseName'] to hard code it or use $CompanyRecord['coyname'] which might have spaces or other characters that could cause trouble ...
so you could refine a bit to lose the spaces and replace with underscores...
str_replace(" ","_",$CompanyRecord['coyname'])