summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-07-05 22:13:42 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-07-05 22:13:42 +0000
commit4afd2ef4324be7f35a126b89935a2932ed0373aa (patch)
treea61cfca1488ea954278f8acb0e5b696c7f05c769 /scripts
parent859ae950bebed02d0d3d6d0ab2341629d242d236 (diff)
Removing debugging code accidently left in
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2187 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/payment.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/payment.pl b/scripts/payment.pl
index ed83b9c8..a5561cc1 100644
--- a/scripts/payment.pl
+++ b/scripts/payment.pl
@@ -72,6 +72,7 @@ sub payments {
my ($request) = @_;
my $payment = LedgerSMB::DBObject::Payment->new({'base' => $request});
$payment->get_metadata();
+ $payment->debug({file => '/tmp/delme'});
my $template = LedgerSMB::Template->new(
user => $request->{_user},
locale => $request->{_locale},
@@ -260,6 +261,23 @@ sub display_payments {
for (@{$payment->{contact_invoices}}){
$_->{total_due} = $payment->format_amount(amount => $_->{total_due});
}
+
+ @{$payment->{media_options}} = (
+ {text => $request->{_locale}->text('Screen'),
+ value => 'screen'});
+ for (keys %LedgerSMB::Sysconfig::printer){
+ push @{$payment->{media_options}},
+ {text => $_,
+ value => $LedgerSMB::Sysconfig::printer{$_}};
+ }
+ if ($LedgerSMB::Sysconfig::latex){
+ @{$payment->{format_options}} = (
+ {text => 'PDF', value => 'PDF'},
+ {text => 'Postscript', value => 'Postscript'},
+ );
+ $payment->{can_print} = 1;
+ }
+
my $template = LedgerSMB::Template->new(
user => $request->{_user},
locale => $request->{_locale},