From: Joe Hunt Date: Thu, 17 Nov 2011 08:19:37 +0000 (+0100) Subject: 1177: Print single receipt fails X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1ab1508a94cae6cf6d7246aa6caf27c51832fa42;p=textcart.git 1177: Print single receipt fails --- diff --git a/reporting/rep112.php b/reporting/rep112.php index f04ee1d..acfe739 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)