indent testype purchase vat

This commit is contained in:
Sampanna Rimal
2024-08-08 12:16:46 +05:45
parent 52f9c0dd15
commit 9f5ba32db2
17 changed files with 255 additions and 143 deletions

View File

@ -234,5 +234,12 @@ class Welcome extends CI_Controller
if ($query->num_rows() == 0) {
$this->db->query("ALTER TABLE tbl_sales ADD COLUMN vatToggle INT(11)");
}
$query = $this->db->query("SHOW COLUMNS FROM tbl_accounts LIKE 'account_bank'");
// If the column doesn't exist, alter the table to add it
if ($query->num_rows() == 0) {
$this->db->query("ALTER TABLE tbl_accounts ADD COLUMN account_bank VARCHAR(50)");
}
}
}