diff --git a/application/logs/log-2017-12-07.php b/application/logs/log-2017-12-07.php index f474739b..45471066 100644 --- a/application/logs/log-2017-12-07.php +++ b/application/logs/log-2017-12-07.php @@ -339,3 +339,97 @@ ERROR - 2017-12-07 08:45:29 --> Severity: Notice --> Undefined property: stdCla ERROR - 2017-12-07 08:46:39 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 ERROR - 2017-12-07 08:47:54 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 ERROR - 2017-12-07 09:02:00 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 09:20:44 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 09:21:13 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:17:09 --> Query error: Column 'type' in where clause is ambiguous +ERROR - 2017-12-07 10:17:28 --> Query error: Column 'type' in where clause is ambiguous +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:35 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:45 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:45 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:45 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:18:45 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:20:42 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:26:20 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:27:52 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 10:56:33 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where tinc.type='EXPENSE' and monthname(date) = 'November' group by account_code' at line 3 +ERROR - 2017-12-07 11:00:13 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:13 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:13 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:13 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:13 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 +ERROR - 2017-12-07 11:00:14 --> Severity: Notice --> Undefined property: stdClass::$account_code C:\xampp\htdocs\siddharth_application\application\views\cashbookmonthlydep.php 77 diff --git a/application/models/dahsboard_model.php b/application/models/dahsboard_model.php index 8261fd84..ae1ea56d 100755 --- a/application/models/dahsboard_model.php +++ b/application/models/dahsboard_model.php @@ -1382,7 +1382,7 @@ group by supplier_name,material_name"; } function cashbook() { - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,tinc.description,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code "; + $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,tinc.description,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code where tinc.type='EXPENSE'"; $query = $this->db->query($sql); return $query->result(); } @@ -1431,7 +1431,7 @@ group by supplier_name,material_name"; { $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,.tinc.description, ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code - WHERE account_code = '$sid' and monthname(date)='$d'"; + WHERE tinc.type='EXPENSE' and account_code = '$sid' and monthname(date)='$d'"; $query = $this->db->query($sql); //print_r($this->db->last_query()); //echo $sql; @@ -1442,7 +1442,7 @@ group by supplier_name,material_name"; { $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,monthname(tinc.date)as month,tinc.description,tinc.towhom,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code - WHERE monthname(date) = ? group by account_code"; + WHERE tinc.type='EXPENSE' and monthname(date) = ? group by account_code"; $query = $this->db->query($sql,array($sid)); //print_r($this->db->last_query()); return $query->result(); diff --git a/application/views/cashbookmonthlydep.php b/application/views/cashbookmonthlydep.php index 4562a5c5..ab8ae10c 100644 --- a/application/views/cashbookmonthlydep.php +++ b/application/views/cashbookmonthlydep.php @@ -43,7 +43,7 @@ if(!empty($Indiancurrency))
| Date | +Account Name | @@ -64,7 +64,7 @@ if(!empty($Indiancurrency)) ?>||||
|---|---|---|---|---|---|
| date?> | +name?> | diff --git a/application/views/reportcashbook.php b/application/views/reportcashbook.php index e02eb19f..a0a09dc2 100644 --- a/application/views/reportcashbook.php +++ b/application/views/reportcashbook.php @@ -236,6 +236,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:name?> | towhom?> | type?> | -total,2,'.','');?> | +total,2,'.',''); + echo number_format($cash->total,2,'.','');?> | description?> | @@ -258,6 +261,30 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled: } ?> + +
| Total | ++ | + | + | + + + | + ++ + + + + |