From: Joe Hunt Date: Thu, 17 Nov 2011 08:19:37 +0000 (+0100) Subject: 1177: Print single receipt fails X-Git-Tag: 2.3-final~527 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=aeef2bf17512535dcdc1b37dc41bee9d7e517da5;p=fa-stable.git 1177: Print single receipt fails --- 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)