4821: banking overdraft message has php errors. Fixed. @Braathwaathe
[fa-stable.git] / sales / view / view_sales_order.php
index 1c3d95b43f68c6d901f8943f48ef35d4ab300289..0e275737eb272169a96bf993a6491c5fc125c99d 100644 (file)
@@ -181,7 +181,7 @@ if ($_GET['trans_type'] != ST_SALESQUOTE)
 
        $credits_total = 0;
 
-       if (get_sales_child_documents(ST_SALESINVOICE, $inv_numbers)) {
+       if ($result = get_sales_child_documents(ST_SALESINVOICE, $inv_numbers)) {
                $k = 0;
 
                while ($credits_row = db_fetch($result))