Wrong linked credit data on invoices/credits table when view PO
[fa-stable.git] / purchasing / includes / db / grn_db.inc
index 691ae73f8f71f92bb63bd316859e332a37c08245..01a84e1f9959d2e398ed89cd344458829a5ad494 100644 (file)
@@ -310,7 +310,8 @@ function read_grn_items_to_order($grn_batch, &$order)
 
                while ($myrow = db_fetch($result))
                {
-
+                       if ($myrow['qty_recd'] == 0 && $myrow['quantity_inv'] == 0)
+                               continue; // 2011-01-18 Joe Hunt. We will not have empty credited rows.
                        if (is_null($myrow["units"]))
                        {
                                $units = "";