! -> Note
$ -> Affected files
+20-Aug-2008
+# Voiding PO GRN's could be dangerous, if deliveries have been done. Eliminating it. Use item adjustment with 0 price.
+$ /admin/db/voiding_db.inc
+# Fixing a minor bug in grn_db.inc
+$ /purchasing/includes/db/grn_db.inc
+
19-Aug-2008 Joe Hunt
# Fixed some color conversion problems in the new PDF Engine
$ /reporting/includes/pdf_report.inc
void_stock_adjustment($type_no);
break;
+ case 25 : // it's a GRN
+ return false;
case 20 : // it's a suppler invoice
case 21 : // it's a supplier credit note
case 22 : // it's a supplier payment
- case 25 : // it's a GRN
if (!exists_supp_trans($type, $type_no))
return false;
if (!post_void_supp_trans($type, $type_no))
//------------------- 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)