Recurrent Invoices: fixed buggy call to non existing function and payment terms type...
[fa-stable.git] / sales / includes / sales_db.inc
index 348d69fd1bb0022cb1451c0374c56000ab35708e..3fda4392dad06e416709f490b3dd8a8a3f64b697 100644 (file)
@@ -421,7 +421,6 @@ function create_recurrent_invoices($id, $from, $to, $date, $memo)
                1.3-31.3 -  1.4
                In example above, when end is set to 1.4 will generate additional invoice on 1.5 !
        */
-       log_user();
 
        $myrow = get_recurrent_invoice($id);
 
@@ -471,7 +470,7 @@ function write_recurrent_invoice($invoice_id, $description, $order_no, $debtor_n
 
 function write_customer($customer_id, $name, $ref, $address, $tax_id, $curr_code, $dim1, $dim2, $credit_status,
         $payment_terms, $discount, $credit_limit, $sales_type, $notes, $inactive, $salesman, $area, 
-        $tax_group, $location, $address, $ship_via, $notes, $bank_account, $address, $phone, $phone2, $fax, $email)
+        $tax_group, $location, $ship_via, $bank_account, $phone, $phone2, $fax, $email)
 {
        global $SysPrefs;