Recurring tickets book each ticket for its run day at a set time, remote or onsite, and can be raised a number of days ahead of the run or of the 1st of its month; recurring invoices can be made a number of days ahead, due on their date plus the client's terms or on their date; database 3.7.7 adds the columns; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 17:56:00 -05:00
parent a27c5d684a
commit de9544ffc6
13 changed files with 301 additions and 15 deletions

6
db.sql
View File

@@ -2740,6 +2740,8 @@ CREATE TABLE `recurring_invoices` (
`recurring_invoice_last_sent` date DEFAULT NULL,
`recurring_invoice_next_date` date NOT NULL,
`recurring_invoice_anchor_day` tinyint(2) NOT NULL DEFAULT 0,
`recurring_invoice_lead_days` int(11) NOT NULL DEFAULT 0,
`recurring_invoice_due_mode` varchar(10) NOT NULL DEFAULT 'terms',
`recurring_invoice_status` int(1) NOT NULL,
`recurring_invoice_discount_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
`recurring_invoice_amount` decimal(15,2) NOT NULL DEFAULT 0.00,
@@ -2858,6 +2860,10 @@ CREATE TABLE `recurring_tickets` (
`recurring_ticket_billable` tinyint(1) NOT NULL DEFAULT 0,
`recurring_ticket_start_date` date NOT NULL,
`recurring_ticket_next_run` date NOT NULL,
`recurring_ticket_schedule_time` time DEFAULT NULL,
`recurring_ticket_schedule_onsite` tinyint(1) NOT NULL DEFAULT 0,
`recurring_ticket_lead_days` int(11) NOT NULL DEFAULT 0,
`recurring_ticket_lead_mode` varchar(10) NOT NULL DEFAULT 'days',
`recurring_ticket_paused_at` datetime DEFAULT NULL,
`recurring_ticket_created_at` datetime NOT NULL DEFAULT current_timestamp(),
`recurring_ticket_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),