Minor fix
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Jun 2009 19:33:24 +0000 (19:33 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Jun 2009 19:33:24 +0000 (19:33 +0000)
purchasing/includes/db/invoice_db.inc

index 96d82d8328444b7e0a21c5e0bc4f93058b07e0f2..e55fd1df2abf8bc4aa0c2f00f2954bebcb4d5619 100644 (file)
@@ -447,7 +447,7 @@ function void_supp_invoice($type, $type_no)
                        }
                        else
                        {
-                                       $diff = get_diff_in_home_currency($grn["supplier_id"], $old_date, $date_, $old[2], 
+                                       $diff = get_diff_in_home_currency($grn["supplier_id"], $old_date, $old_date_, $old[2], 
                                                $details_row["FullUnitPrice"]);
                                        // Only adjust the avg for the diff
                                        $mat_cost = update_average_material_cost(null, $details_row["stock_id"],