diff --git a/db.sql b/db.sql index e34f4272..4d830921 100644 --- a/db.sql +++ b/db.sql @@ -258,7 +258,7 @@ CREATE TABLE `expenses` ( `category_id` int(11) NOT NULL, `account_id` int(11) NOT NULL, PRIMARY KEY (`expense_id`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -275,7 +275,7 @@ CREATE TABLE `invoice_history` ( `invoice_history_description` varchar(200) NOT NULL, `invoice_id` int(11) NOT NULL, PRIMARY KEY (`invoice_history_id`) -) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -296,7 +296,7 @@ CREATE TABLE `invoice_items` ( `invoice_item_total` decimal(15,2) NOT NULL, `invoice_id` int(11) NOT NULL, PRIMARY KEY (`invoice_item_id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -357,7 +357,28 @@ CREATE TABLE `payments` ( `account_id` int(11) NOT NULL, `invoice_id` int(11) NOT NULL, PRIMARY KEY (`payment_id`) -) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `recurring_invoices` +-- + +DROP TABLE IF EXISTS `recurring_invoices`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_invoices` ( + `recurring_invoice_id` int(11) NOT NULL AUTO_INCREMENT, + `recurring_invoice_frequency` int(11) NOT NULL, + `recurring_invoice_start_date` date NOT NULL, + `recurring_invoice_last_sent` date NOT NULL, + `recurring_invoice_amount` decimal(15,2) NOT NULL, + `recurring_invoice_note` text NOT NULL, + `recurring_invoice_active` int(1) NOT NULL, + `category_id` int(11) NOT NULL, + `client_id` int(11) NOT NULL, + PRIMARY KEY (`recurring_invoice_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -421,4 +442,4 @@ CREATE TABLE `vendors` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2019-04-07 12:36:00 +-- Dump completed on 2019-04-07 23:34:02 diff --git a/recurring.php b/recurring.php new file mode 100644 index 00000000..6eae8e84 --- /dev/null +++ b/recurring.php @@ -0,0 +1,87 @@ + + + + +
| Frequency | +Client | +Start Date | +Last Sent | +Amount | +Status | +Actions | +
|---|---|---|---|---|---|---|
| INV- | ++ | $ | ++ | + | + + + + | +
+
+
+
+
+ |
+