Removed sparse fields contact_name,disable_trans from cust_branch, added branch bank...
[fa-stable.git] / sales / includes / db / recurrent_invoices_db.inc
index 4ff6854973bfa79bd7168ff33e382767bb6b7a11..ba173f3336596ba9b511a2c5359f7f0f0c0457d9 100644 (file)
@@ -17,7 +17,7 @@ function add_recurrent_invoice($description, $order_no, $debtor_no, $group_no, $
                group_no, days, monthly, begin, end, last_sent) VALUES (".db_escape($description) . ", "
                .db_escape($order_no).", ".db_escape($debtor_no).", "
                .db_escape($group_no).", ".$days.", ".$monthly.", '"
-               .date2sql($begin)."', '".date2sql($end)."', '".date2sql(Add_Years($begin, -5))."')";
+               .date2sql($begin)."', '".date2sql($end)."', '0000-00-00')";
        db_query($sql,"The recurrent invoice could not be added");
 }
 
@@ -63,4 +63,3 @@ function get_recurrent_invoice($selected_id)
        $result = db_query($sql,"could not get recurrent invoice");
        return db_fetch($result);
 }
-?>
\ No newline at end of file