Add ability for recurring invoices to be generated as draft to allow review and amendment prior to sending

This commit is contained in:
Wrongecho
2026-09-14 13:22:59 +00:00
parent 9685ff0435
commit a41e738a9b
6 changed files with 136 additions and 80 deletions

View File

@@ -0,0 +1,14 @@
<?php
/*
* ITFlow - Database update to version 2.7.9 (from 2.7.8)
* Included by admin/database_updates.php - do not access directly
*/
defined('FROM_DB_UPDATER') || die("Direct file access is not allowed");
// Add auto-send option to recurring invoices (default to enabled) or whether they should be generated as drafts for manual review & sending
mysqli_query($mysqli, "ALTER TABLE `recurring_invoices`
ADD COLUMN `recurring_invoice_auto_send` tinyint(1) NOT NULL DEFAULT 1 AFTER `recurring_invoice_note`
");