Am 20.10.2011 19:45, schrieb Jeff Roberts:
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'

I feat SQL-Ledger needs this timestamp somewhere. A second place where it's more safe to change is here:
https://github.com/Tekki/sql-ledger/blob/master/SL/Form.pm#L950

- create new scalar from $self->{tmpfile}
- replace the numbers at the beginning with the text you like
- use this scalar instead of $self->{tmpfile} in the header

I wonder if this is a FreeBSD/Unix thing (that the time comes out like a
number).

http://perldoc.perl.org/functions/time.html

Tekki
_______________________________________________
SQL-Ledger mailing list
[email protected]
http://lists.ledger123.com/mailman/listinfo/sql-ledger

Reply via email to