From aeef2bf17512535dcdc1b37dc41bee9d7e517da5 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 17 Nov 2011 09:19:37 +0100 Subject: [PATCH] 1177: Print single receipt fails --- reporting/rep112.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reporting/rep112.php b/reporting/rep112.php index f04ee1d7..acfe7394 100644 --- a/reporting/rep112.php +++ b/reporting/rep112.php @@ -97,8 +97,8 @@ function print_receipts() for ($i = $from; $i <= $to; $i++) { - if ($from == $to) - $types = array($from); + if ($fno[0] == $tno[0]) + $types = array($fno[1]); else $types = array(ST_BANKDEPOSIT, ST_CUSTPAYMENT); foreach ($types as $j) -- 2.30.2