Replaced the global variables for table styles to defined CSS classes.
[fa-stable.git] / sales / create_recurrent_invoices.php
index 04c4bda526256d21355ae7b4f67aba3b9c3d6b77..3ccbbff711be99af60538e131ce45d6fb4e4d6f4 100644 (file)
@@ -35,7 +35,7 @@ function create_recurrent_invoices($customer_id, $branch_id, $order_no, $tmpl_no
        $doc->trans_no = 0;
        $doc->document_date = Today(); // 2006-06-15. Added so Invoices and Deliveries get current day
 
-       $doc->due_date = get_invoice_duedate($doc->customer_id, $doc->document_date);
+       $doc->due_date = get_invoice_duedate($doc->payment, $doc->document_date);
        $doc->reference = $Refs->get_next($doc->trans_type);
        //$doc->Comments='';
 
@@ -94,7 +94,7 @@ if (isset($_GET['recurrent']))
 
 $result = get_recurrent_invoices();
 
-start_table("$table_style width=70%");
+start_table(TABLESTYLE, "width=70%");
 $th = array(_("Description"), _("Template No"),_("Customer"),_("Branch")."/"._("Group"),_("Days"),_("Monthly"),_("Begin"),_("End"),_("Last Created"),"");
 table_header($th);
 $k = 0;