Removed obsolete complete parameter.
[fa-stable.git] / purchasing / supplier_invoice.php
index 6c2a5ea2f5cbb32852fd309d61bde5a1548bd938..48b79d69884769da8a78ab8fd0a608d59da6e0e8 100644 (file)
@@ -65,8 +65,7 @@ if (isset($_GET['New']))
                unset ($_SESSION['supp_trans']);
        }
 
-       $_SESSION['supp_trans'] = new supp_trans;
-       $_SESSION['supp_trans']->is_invoice = true;
+       $_SESSION['supp_trans'] = new supp_trans(ST_SUPPINVOICE);
 }
 
 //--------------------------------------------------------------------------------------------------
@@ -350,7 +349,7 @@ start_form();
 invoice_header($_SESSION['supp_trans']);
 
 if ($_POST['supplier_id']=='') 
-       display_error('No supplier found for entered search text');
+               display_error(_("There is no supplier selected."));
 else {
        display_grn_items($_SESSION['supp_trans'], 1);