From 12a0239ccda7e2bd68cae034e916c6a664c3c430 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 21 Jul 2008 22:57:42 +0000 Subject: Adding max numbers of invoices to check template, take 2 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2218 4979c152-3d1c-0410-bac9-87ea11338e46 --- scripts/payment.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/payment.pl b/scripts/payment.pl index 7da4fc2c..e9aa8482 100644 --- a/scripts/payment.pl +++ b/scripts/payment.pl @@ -302,7 +302,7 @@ sub print { $inv_count = $LedgerSMB::Sysconfig::check_max_invoices; } - for my $inv (1 .. $payment->{"invoice_count_$id"}){ + for my $inv (1 .. $inv_count){ print STDERR "Invoice $inv of " .$payment->{"invoice_count_$id"} . "\n"; my $invhash = {}; my $inv_id = $payment->{"invoice_${id}_$inv"}; -- cgit v1.2.3