diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-12-07 18:26:43 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-12-07 18:26:43 +0000 |
commit | a3c7eaeb221da06f96c1bd3c288e62c83b4d7be2 (patch) | |
tree | e56df466dbaa50fd2ddf2b6dd871ec93925b2b1b /bin/jc.pl | |
parent | b36b485608b9fc389cd0aeedbd0edc1b92c0c063 (diff) |
Fixes some issues with saving parts. Also is a step towards fixing printing with 3-arg open statements. Printing is not verified yet.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@739 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/jc.pl')
-rwxr-xr-x | bin/jc.pl | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1859,8 +1859,9 @@ sub print_timecard { } if ($form->{media} !~ /(screen|queue)/) { - $form->{OUT} = "| ${LedgerSMB::Sysconfig::printer}{$form->{media}}"; - + $form->{OUT} = "${LedgerSMB::Sysconfig::printer}{$form->{media}}"; + $form->{printmode} = '|-'; + if ($form->{printed} !~ /$form->{formname}/) { $form->{printed} .= " $form->{formname}"; $form->{printed} =~ s/^ //; @@ -1894,7 +1895,8 @@ sub print_timecard { } $filename .= ($form->{format} eq 'postscript') ? '.ps' : '.pdf'; - $form->{OUT} = ">${LedgerSMB::Sysconfig::spool}/$filename"; + $form->{OUT} = "${LedgerSMB::Sysconfig::spool}/$filename"; + $form->{printmode} = '>'; $form->{queued} = "$form->{formname} $filename"; $form->update_status(\%myconfig); |