Thanks Tekki
I did this to line 571 - commented the line out and added a new line
beneath it.
# my $fileid = time;
my $fileid = "JRElectronics";
The result is a .pdf named 'JRElectronics_invoice_6475.pdf'
Which is fine for now, I'll look into using the customer name later but
at least it's a user readable file name now.
I wonder if this is a FreeBSD/Unix thing (that the time comes out like a
number).
Can someone who has this running on a Windows machine let us know if
their file name is displayed as a proper date?
e.g.: 20Oct2011_invoice_6475.pdf ?
Jeff Roberts
J.R. Electronics
604-241-1362
On 10/20/2011 10:14 AM, Rolf Stöckli wrote:
Am 20.10.2011 18:54, schrieb Jeff Roberts:
Hi All
Quite often I print a file to 'screen' in .pdf format to get a copy of
an invoice i can attach to an email.
SQL-Ledger forms the name of this file as
1318446785_invoice_6479.pdf
I don't know what that number is but I'd like to replace it with the
customer name like this
IBM_invoice_6479
I've looked through the .pl code but can't find where this name is put
together, can someone give me a pointer on where to find this snippet of
code so I can modify it?
Must be around here:
https://github.com/Tekki/sql-ledger/blob/master/SL/Form.pm#L571
That I show you the place doesn't mean that I recommend the change.
Regards
Tekki
_______________________________________________
SQL-Ledger mailing list
[email protected]
http://lists.ledger123.com/mailman/listinfo/sql-ledger
_______________________________________________
SQL-Ledger mailing list
[email protected]
http://lists.ledger123.com/mailman/listinfo/sql-ledger