Credit Notes were never seen in View Sales Order. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 17 Dec 2018 14:56:32 +0000 (15:56 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 17 Dec 2018 14:56:32 +0000 (15:56 +0100)
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))