Added new Field Client Tax ID Number, currently only vieable on the client top head, and under edit. It is also searchable

This commit is contained in:
johnnyq
2023-04-11 16:20:48 -04:00
parent d27c83ab66
commit f127719cbe
10 changed files with 41 additions and 7 deletions

View File

@@ -946,11 +946,18 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.4.9'");
}
//if (CURRENT_DATABASE_VERSION == '0.4.9') {
if (CURRENT_DATABASE_VERSION == '0.4.9') {
// Insert queries here required to update to DB version 0.5.0
mysqli_query($mysqli, "ALTER TABLE `clients` ADD `client_tax_id_number` VARCHAR(255) NULL DEFAULT NULL AFTER `client_net_terms`");
// Then, update the database to the next sequential version
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.5.0'");
}
//if (CURRENT_DATABASE_VERSION == '0.5.0') {
// Insert queries here required to update to DB version 0.5.1
// Then, update the database to the next sequential version
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.5.0'");
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.5.1'");
//}
} else {