diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 00:01:16 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 00:01:16 +0000 |
commit | c3c9871298597e417d67f691fca24cd913ef802a (patch) | |
tree | c743f476ab241b97069518fbd90f89a1f2ae5f00 /bin/jc.pl | |
parent | 0dc5b99d6e3bd63c2e20e131b39b38503add2dc0 (diff) |
Moved all scalars out of ledger-smb.conf
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@268 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/jc.pl')
-rwxr-xr-x | bin/jc.pl | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -629,7 +629,7 @@ sub timecard_footer { if (!$form->{locked}) { for ('Update', 'Print', 'Save', 'Save as new') { $a{$_} = 1 } - if ($latex) { + if (${LedgerSMB::Sysconfig::latex}) { for ('Print and Save', 'Print and Save as new') { $a{$_} = 1 } } @@ -645,7 +645,7 @@ sub timecard_footer { for ('Update', 'Print', 'Save') { $a{$_} = 1 } - if ($latex) { + if (${LedgerSMB::Sysconfig::latex}) { $a{'Print and Save'} = 1; } @@ -842,7 +842,7 @@ sub storescard_footer { if (!$form->{locked}) { for ('Update', 'Print', 'Save', 'Save as new') { $a{$_} = 1 } - if ($latex) { + if (${LedgerSMB::Sysconfig::latex}) { for ('Print and Save', 'Print and Save as new') { $a{$_} = 1 } } if ($form->{orphaned}) { @@ -855,7 +855,7 @@ sub storescard_footer { if ($transdate > $closedto) { for ('Update', 'Print', 'Save') { $a{$_} = 1 } - if ($latex) { + if (${LedgerSMB::Sysconfig::latex}) { $a{'Print and Save'} = 1; } } @@ -1761,12 +1761,12 @@ sub print_options { $form->{selectformat} = qq|<option value="html">html\n|; - if (%printer && $latex) { + if (%printer && ${LedgerSMB::Sysconfig::latex}) { for (sort keys %printer) { $media .= qq| <option value="$_">$_| } } - if ($latex) { + if (${LedgerSMB::Sysconfig::latex}) { $media .= qq| <option value="queue">|.$locale->text('Queue'); @@ -1886,7 +1886,7 @@ sub print_timecard { if ($filename = $queued{$form->{formname}}) { $form->{queued} =~ s/$form->{formname} $filename//; - unlink "$spool/$filename"; + unlink "${LedgerSMB::Sysconfig::spool}/$filename"; $filename =~ s/\..*$//g; } else { $filename = time; @@ -1894,7 +1894,7 @@ sub print_timecard { } $filename .= ($form->{format} eq 'postscript') ? '.ps' : '.pdf'; - $form->{OUT} = ">$spool/$filename"; + $form->{OUT} = ">${LedgerSMB::Sysconfig::spool}/$filename"; $form->{queued} = "$form->{formname} $filename"; $form->update_status(\%myconfig); @@ -1911,7 +1911,7 @@ sub print_timecard { $status{audittrail} .= $form->audittrail("", \%myconfig, \%audittrail); } - $form->parse_template(\%myconfig, $userspath); + $form->parse_template(\%myconfig, ${LedgerSMB::Sysconfig::userspath}); if (defined %$old_form) { |