When saving a Payment to a Customer in Bank Payments (normally payment to suppliers...
[fa-stable.git] / reporting / rep101.php
index d8ad7d6482609716822809baf196877370b5aefd..1745d93d6986a38a5948d8249f58175018fa9ffb 100644 (file)
@@ -152,7 +152,7 @@ function print_customer_balances()
                        else
                                $item[3] = ($trans['TotalAmount'] + $trans['Allocated']) * $rate;
                        */
-                       if ($trans['type'] == 10)
+                       if ($trans['type'] == 10 || $trans['type'] == 1)
                                $item[3] = $item[0] + $item[1] - $item[2];
                        else    
                                $item[3] = $item[0] - $item[1] + $item[2];