1177: Print single receipt fails
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 17 Nov 2011 08:19:37 +0000 (09:19 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 17 Nov 2011 08:19:37 +0000 (09:19 +0100)
reporting/rep112.php

index f04ee1d77f5cd1df851782269101da5492f0504d..acfe7394e8d4040dca6642672721681047a05796 100644 (file)
@@ -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)