1177: Print single receipt fails
[fa-stable.git] / 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)