summaryrefslogtreecommitdiff
path: root/bin/pos.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-24 02:38:49 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-24 02:38:49 +0000
commitb193f4e3c1c2b4e826ed1004b8c64d5e6e991ba8 (patch)
tree79152cd1bc3296d7783ab0b060e10c127c02cdd6 /bin/pos.pl
parent1b13895ec6bd39568353c1a4d66d55f733f56734 (diff)
Moved %printer from ledger-smb.conf to Ledger::Sysconfig
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@281 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/pos.pl')
-rwxr-xr-xbin/pos.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pos.pl b/bin/pos.pl
index fb191a85..999e0aa3 100755
--- a/bin/pos.pl
+++ b/bin/pos.pl
@@ -77,7 +77,7 @@ sub on_update{
}
sub open_drawer{
- open (PRINTER, "|-", $printer{Printer});
+ open (PRINTER, "|-", ${LedgerSMB::Sysconfig::printer}{Printer});
print PRINTER $pos_config{'rp_cash_open'};
close PRINTER;
sleep 1;
@@ -840,7 +840,7 @@ sub print_form {
}
if ($form->{media} ne 'screen') {
- $form->{OUT} = "| $printer{$form->{media}}";
+ $form->{OUT} = "| ${LedgerSMB::Sysconfig::printer}{$form->{media}}";
}
$form->{discount} = $form->format_amount(\%myconfig, $form->{discount} * 100);
@@ -931,8 +931,8 @@ sub print_options {
<td><input class=radio type=radio name=media value="screen"></td>
<td>|.$locale->text('Screen').qq|</td>|;
- if (%printer) {
- for (keys %printer) {
+ if (%{LedgerSMB::Sysconfig::printer}) {
+ for (keys %{LedgerSMB::Sysconfig::printer}) {
$media .= qq|
<td><input class=radio type=radio name=media value="$_"></td>
<td nowrap>$_</td>