Supplier Invoices, Supplier Credit Notes: fixed editon form bugs, fixed reference...
[fa-stable.git] / purchasing / supplier_credit.php
index 35012f297532c3c22e0b16444a167928f86f53ec..08040582a3b7dec469eec0a7c5ab6f6a5554bd45 100644 (file)
@@ -47,7 +47,7 @@ if (isset($_GET['New']))
        if (isset($_GET['invoice_no']))
        {
                $_SESSION['supp_trans'] = new supp_trans(ST_SUPPINVOICE, $_GET['invoice_no']);
-               $_SESSION['supp_trans']->src_doc = $_GET['invoice_no'];
+               $_SESSION['supp_trans']->src_docs = array( $_GET['invoice_no'] => $_SESSION['supp_trans']->supp_reference);
 
 
                $_SESSION['supp_trans']->trans_type = ST_SUPPCREDIT;