cashbook bugs in pdf, reports and view income and expense

This commit is contained in:
saravanakumar_kandasami 2017-12-07 19:29:38 +05:30
parent 6938886867
commit 04d89f3518
4 changed files with 58 additions and 23 deletions

View File

@ -0,0 +1,34 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-12-07 14:42:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
ERROR - 2017-12-07 14:42:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
ERROR - 2017-12-07 14:42:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
ERROR - 2017-12-07 14:42:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
ERROR - 2017-12-07 14:42:06 --> Severity: Notice --> Undefined variable: HtmlHeading C:\xampp\htdocs\ria\application\controllers\cashbook.php 48
ERROR - 2017-12-07 14:42:06 --> Severity: Notice --> Undefined variable: HTMLFooter C:\xampp\htdocs\ria\application\controllers\cashbook.php 51
ERROR - 2017-12-07 14:42:06 --> Severity: Notice --> Use of undefined constant I - assumed 'I' C:\xampp\htdocs\ria\application\controllers\cashbook.php 57
ERROR - 2017-12-07 14:42:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51
ERROR - 2017-12-07 14:45:32 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
ERROR - 2017-12-07 14:45:32 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
ERROR - 2017-12-07 14:45:32 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
ERROR - 2017-12-07 14:45:32 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
ERROR - 2017-12-07 14:45:32 --> Severity: Notice --> Undefined variable: HtmlHeading C:\xampp\htdocs\ria\application\controllers\cashbook.php 48
ERROR - 2017-12-07 14:45:32 --> Severity: Notice --> Undefined variable: HTMLFooter C:\xampp\htdocs\ria\application\controllers\cashbook.php 51
ERROR - 2017-12-07 14:45:32 --> Severity: Notice --> Use of undefined constant I - assumed 'I' C:\xampp\htdocs\ria\application\controllers\cashbook.php 57
ERROR - 2017-12-07 14:45:32 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51
ERROR - 2017-12-07 14:47:15 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
ERROR - 2017-12-07 14:47:15 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
ERROR - 2017-12-07 14:47:15 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
ERROR - 2017-12-07 14:47:15 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
ERROR - 2017-12-07 14:47:15 --> Severity: Notice --> Undefined variable: HtmlHeading C:\xampp\htdocs\ria\application\controllers\cashbook.php 48
ERROR - 2017-12-07 14:47:15 --> Severity: Notice --> Undefined variable: HTMLFooter C:\xampp\htdocs\ria\application\controllers\cashbook.php 51
ERROR - 2017-12-07 14:47:15 --> Severity: Notice --> Use of undefined constant I - assumed 'I' C:\xampp\htdocs\ria\application\controllers\cashbook.php 57
ERROR - 2017-12-07 14:47:15 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51
ERROR - 2017-12-07 14:49:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
ERROR - 2017-12-07 14:49:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
ERROR - 2017-12-07 14:49:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
ERROR - 2017-12-07 14:49:06 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
ERROR - 2017-12-07 14:49:06 --> Severity: Notice --> Undefined variable: HtmlHeading C:\xampp\htdocs\ria\application\controllers\cashbook.php 48
ERROR - 2017-12-07 14:49:06 --> Severity: Notice --> Undefined variable: HTMLFooter C:\xampp\htdocs\ria\application\controllers\cashbook.php 51
ERROR - 2017-12-07 14:49:07 --> Severity: Notice --> Use of undefined constant I - assumed 'I' C:\xampp\htdocs\ria\application\controllers\cashbook.php 57
ERROR - 2017-12-07 14:49:07 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51

View File

@ -54,10 +54,10 @@ $pic = base_url().'uploads/images/'.$company[0]->ProfilePic;
<tr style="height: 26px;">
<td style="width: 89px; height: 26px;">&nbsp;</td>
<td style="width: 89px; height: 26px;">&nbsp;</td>
<td style="width: 89px; height: 26px;">&nbsp;</td>
<td style="width: 90px; height: 26px;">&nbsp;</td>
<td style=" height: 26px;">&nbsp;</td>
<td style=" height: 26px;">&nbsp;</td>
<td style="width: 90px; height: 26px;">Prepared By &nbsp;</td>
<td style="width: 90px; height: 26px;"><?php echo $data[0]->FirstName.'&nbsp;'.$data[0]->LastName;?></td>
<td style="width: 200px; height: 26px;"><?php echo $data[0]->FirstName.'&nbsp;'.$data[0]->LastName;?></td>
<hr>
</tr>
<tr style="height: 26px;">

View File

@ -75,8 +75,8 @@ if(!empty($todayincome))
</head>
<script>
/*!
DataTables Bootstrap 3 integration
©2011-2014 SpryMedia Ltd - datatables.net/license
*/
(function(l,q){var e=function(b,c){b.extend(!0,c.defaults,{dom:"<'row'<'col-sm-9'l><'col-sm-3'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-9'i><'col-sm-3'p>>",renderer:"bootstrap"});b.extend(c.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"});c.ext.renderer.pageButton.bootstrap=function(g,e,r,s,i,m){var t=new c.Api(g),u=g.oClasses,j=g.oLanguage.oPaginate,d,f,n=0,p=function(c,e){var k,h,o,a,l=function(a){a.preventDefault();
b(a.currentTarget).hasClass("disabled")||t.page(a.data.action).draw(!1)};k=0;for(h=e.length;k<h;k++)if(a=e[k],b.isArray(a))p(c,a);else{f=d="";switch(a){case "ellipsis":d="&hellip;";f="disabled";break;case "first":d=j.sFirst;f=a+(0<i?"":" disabled");break;case "previous":d=j.sPrevious;f=a+(0<i?"":" disabled");break;case "next":d=j.sNext;f=a+(i<m-1?"":" disabled");break;case "last":d=j.sLast;f=a+(i<m-1?"":" disabled");break;default:d=a+1,f=i===a?"active":""}d&&(o=b("<li>",{"class":u.sPageButton+" "+
@ -134,11 +134,10 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
height: 400px;
margin: 0 auto
}
</style>
<div>
<section class="content-header">
<div class="content-wrapper">>
<!-- Main content -->
@ -189,8 +188,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
</div>
</div>
</center>
</section>
<!-- Main content -->
</div>
<!--<div class="row">
@ -218,7 +218,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
<CENTER><h3 class="box-title"><strong>Day Wise Payments</strong></h3></CENTER>
<div class="box-body">
<div>
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
<thead>
<tr>
@ -294,6 +294,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
</div>
<!-- /.col -->
</div>

View File

@ -60,20 +60,20 @@ if(!empty($data))
<table id="viewIS">
<thead></thead>
<tbody>
<tr> <td style="text-align:right;"><h4>Date :</h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="text-align:right;"><?php if(!empty($data[0]->date)){echo date_format(date_create($data[0]->date),'d-m-Y');}?></td></tr>
<tr> <td style="text-align:right;"><h4><?php echo $label;?></h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="text-align:right;"><?php if(!empty($data[0]->towhom)){echo $data[0]->towhom;}?></td></tr>
<tr> <td ><h4>Date </h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td > : <?php if(!empty($data[0]->date)){echo date_format(date_create($data[0]->date),'d-m-Y');}?></td></tr>
<tr> <td ><h4><?php echo $label;?></h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td > :<?php if(!empty($data[0]->towhom)){echo $data[0]->towhom;}?></td></tr>
<?php if($flag == 1){?>
<tr> <td style="text-align:right;"><h4>Invoice No :</h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align:right;"><?php if(!empty($data[0]->invoice_no)){echo $data[0]->invoice_no;}?></td></tr>
<tr> <td style="text-align:right;"><h4>Merchant Name :</h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align:right;"><?php if(!empty($data[0]->merchant)){echo $data[0]->merchant;}?></td></tr>
<tr> <td style="text-align:right;"><h4>Merchant GST No :</h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="text-align:right;"><?php if(!empty($data[0]->merchant_gst)){echo $data[0]->merchant_gst;}?></td></tr>
<tr> <td style="text-align:right;"><h4>HSN/SAC No :</h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align:right;"><?php if(!empty($data[0]->HSN)){echo $data[0]->HSN;}?></td></tr>
<tr> <td style="text-align:right;"><h4>Value Before GST :</h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="text-align:right;"><?php if(!empty($data[0]->value_before_gst)){echo $data[0]->value_before_gst;}?></td></tr>
<tr> <td style="text-align:right;"><h4>SGST :</h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="text-align:right;"><?php if(!empty($data[0]->sgst)){echo $data[0]->sgst;}?></td></tr>
<tr> <td style="text-align:right;"><h4>CGST :</h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align:right;"><?php if(!empty($data[0]->cgst)){echo $data[0]->cgst;}?></td></tr>
<tr> <td style="text-align:right;"><h4>IGST :</h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align:right;"><?php if(!empty($data[0]->igst)){echo $data[0]->igst;}?></td></tr>
<tr> <td ><h4>Invoice No </h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td>: <?php if(!empty($data[0]->invoice_no)){echo $data[0]->invoice_no;}?></td></tr>
<tr> <td ><h4>Merchant Name </h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td >: <?php if(!empty($data[0]->merchant)){echo $data[0]->merchant;}?></td></tr>
<tr> <td ><h4>Merchant GST No </h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td >: <?php if(!empty($data[0]->merchant_gst)){echo $data[0]->merchant_gst;}?></td></tr>
<tr> <td ><h4>HSN/SAC No </h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td >: <?php if(!empty($data[0]->HSN)){echo $data[0]->HSN;}?></td></tr>
<tr> <td ><h4>Value Before GST </h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td >: <?php if(!empty($data[0]->value_before_gst)){echo $data[0]->value_before_gst;}?></td></tr>
<tr> <td ><h4>SGST </h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td >: <?php if(!empty($data[0]->sgst)){echo $data[0]->sgst;}?></td></tr>
<tr> <td ><h4>CGST </h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td>: <?php if(!empty($data[0]->cgst)){echo $data[0]->cgst;}?></td></tr>
<tr> <td ><h4>IGST </h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td >: <?php if(!empty($data[0]->igst)){echo $data[0]->igst;}?></td></tr>
<?php }?>
<tr> <td style="text-align:right;"><h4>Total Amount :</h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td style="text-align:right;"><?php if(!empty($data[0]->total)){echo $data[0]->total;}?></td></tr>
<tr> <td style="text-align:right;"><h4>Description :</h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="text-align:right;"><?php if(!empty($data[0]->description)){echo $data[0]->description;}?></td></tr>
<tr> <td ><h4>Total Amount </h4></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td >: <?php if(!empty($data[0]->total)){echo $data[0]->total;}?></td></tr>
<tr> <td ><h4>Description </h4></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td >: <?php if(!empty($data[0]->description)){echo $data[0]->description;}?></td></tr>
</tbody>
</table>
</div>