Quote notifications

- Send an internal email when quotes are accepted/declined
- Clients are prompted to confirm accept/decline with confirm-link
- Tidy
This commit is contained in:
wrongecho
2024-11-14 11:23:28 +00:00
parent e4f618c150
commit 28a0343a97
9 changed files with 102 additions and 12 deletions

View File

@@ -2232,10 +2232,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.5'");
}
// if (CURRENT_DATABASE_VERSION == '1.6.5') {
// // Insert queries here required to update to DB version 1.6.6
if (CURRENT_DATABASE_VERSION == '1.6.5') {
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_quote_notification_email` VARCHAR(200) DEFAULT NULL AFTER `config_quote_from_email`");
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.6'");
}
// if (CURRENT_DATABASE_VERSION == '1.6.6') {
// // Insert queries here required to update to DB version 1.6.7
// // Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.6'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.7'");
// }
} else {