indent testype purchase vat
This commit is contained in:
@ -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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ class Accountheads extends CI_Controller
|
||||
// 'account_partyname' => filter_var($_POST['account_partyname']),
|
||||
'account_number' => filter_var($_POST['account_number']),
|
||||
'account_branch' => filter_var($_POST['account_branch']),
|
||||
'account_bank' => filter_var($_POST['account_bank']),
|
||||
'account_partyaddress' => filter_var($_POST['account_partyaddress']),
|
||||
'account_partypan' => filter_var($_POST['account_partypan']),
|
||||
'account_partycontact' => filter_var($_POST['account_partycontact']),
|
||||
@ -88,6 +89,7 @@ class Accountheads extends CI_Controller
|
||||
'account_currency' => filter_var($_POST['account_currency']),
|
||||
'account_number' => filter_var($_POST['account_number']),
|
||||
'account_branch' => filter_var($_POST['account_branch']),
|
||||
'account_bank' => filter_var($_POST['account_bank']),
|
||||
'account_partyname' => filter_var($_POST['account_partyname']),
|
||||
'account_partyaddress' => filter_var($_POST['account_partyaddress']),
|
||||
'account_partypan' => filter_var($_POST['account_partypan']),
|
||||
|
@ -32,6 +32,7 @@ class Sales extends CI_Controller
|
||||
'accounts_id' => filter_var($_POST['accounts_id']),
|
||||
'sales_date' => filter_var($_POST['salesDate']),
|
||||
'discount' => filter_var($_POST['discountpercentage']),
|
||||
'vatToggle' => filter_var($_POST['vatToggleValue']),
|
||||
'created_on' => date('Y-m-d H:i:s'),
|
||||
'created_by' => 'admin',
|
||||
'remarks' => '',
|
||||
|
Reference in New Issue
Block a user