[0005190] Supplier Invoices: customer reference field was unnecessary cleared on...
[fa-stable.git] / purchasing / includes / supp_trans_class.inc
index 8a70e41488f47b4565511838be523cf5f42c8fe4..96959ecd282e93382d1e3f30c8e004521094e46b 100644 (file)
@@ -66,7 +66,7 @@ class supp_trans
                        read_supp_invoice($trans_no, $trans_type, $this);
                        if ($trans_type == ST_SUPPCREDIT)
                        {
-                               $this->src_docs = find_src_invoices($trans_no);
+                $this->src_docs = find_src_invoices($this);
                        }
                        read_supplier_details_to_trans($this, $this->supplier_id);
                }
@@ -74,7 +74,7 @@ class supp_trans
 
        function add_grn_to_trans($grn_item_id, $po_detail_item, $item_code, $item_description, 
                $qty_recd, $prev_quantity_inv, $this_quantity_inv, $order_price, $chg_price, 
-               $std_cost_unit, $gl_code)
+               $std_cost_unit=null, $gl_code='')
        {
                $this->grn_items[$grn_item_id] = new grn_item($grn_item_id, $po_detail_item, 
                        $item_code, $item_description, $qty_recd, $prev_quantity_inv, $this_quantity_inv,