Voiding PO GRN's could be dangerous, if deliveries have been done. Eliminating it...
[fa-stable.git] / purchasing / includes / db / grn_db.inc
index 0118fa376629923bcf62476de20e0e732a4a42b4..bb24300a945808e279d98b897c43f1dec77c66f4 100644 (file)
@@ -2,7 +2,7 @@
 
 //------------------- update average material cost ------------------------------------------ Joe Hunt Mar-03-2008
 
-function update_average_material_cost($supplier, $stock_id, $price, $qty, $date, $adj_only)
+function update_average_material_cost($supplier, $stock_id, $price, $qty, $date, $adj_only=false)
 {
        $currency = get_supplier_currency($supplier);
        if ($currency != null)