cashbook report and edit page for file uploading
@ -299,9 +299,8 @@ class cashbook extends BaseController
|
||||
//echo $cashfile;
|
||||
//die();
|
||||
//$this->load->model('cashbook_model');
|
||||
$this->cashbook_model->deletefile($cashid);
|
||||
|
||||
//print_r( $data['DepDetails']);die();
|
||||
$filedata= $this->cashbook_model->deletefile($cashid);
|
||||
echo $filedata;
|
||||
//$this->global['pageTitle'] = 'Siddharth : Edit Cashbook';
|
||||
//$this->loadViews("income_expense_list", $this->global,$data, NULL);
|
||||
|
||||
@ -322,6 +321,11 @@ class cashbook extends BaseController
|
||||
//echo $option;die();
|
||||
$ans1 = $this->input->post('ans');
|
||||
$Date1 = $this->input->post('Date');
|
||||
//echo $Date1;
|
||||
$date = date_create($Date1);//,'Y-m-d');
|
||||
$date = date_format($date,'Y-m-d');
|
||||
//echo $date;
|
||||
//$Date1 = $this->input->post('Date');
|
||||
$accountcode1 = $this->input->post('accode');
|
||||
//echo $accountcode1;die();
|
||||
$towhome1 = $this->input->post('towhome');
|
||||
@ -335,6 +339,10 @@ class cashbook extends BaseController
|
||||
$IGST1 = $this->input->post('IGST');
|
||||
$totalamount1 = $this->input->post('totalamount');
|
||||
$description1 = $this->input->post('description');
|
||||
$deleteflag = $this->input->post('deleteflag');
|
||||
$oldfile = $this->input->post('oldfile');
|
||||
$document =null;
|
||||
|
||||
//$document1=$this->input->post('myfile');
|
||||
$fs = 0;
|
||||
if(!empty($_FILES['myfile']['name']))
|
||||
@ -344,13 +352,25 @@ class cashbook extends BaseController
|
||||
$config['upload_path'] = 'uploads/cashbook/';
|
||||
$path = $config['upload_path'];
|
||||
//$filename = $config['file_name'];
|
||||
$document = $path.$filename;
|
||||
//$document = $path.$filename;
|
||||
//echo $document;
|
||||
$fs = $this->uploadFile();
|
||||
$document = $path.$fs;
|
||||
|
||||
|
||||
}
|
||||
$updateaccount = array('type'=>$option,'account_code'=>$accountcode1,'date'=>$Date1,'towhom'=>$towhome1,'invoice_no'=>$Invoiceno1,'merchant'=>$merchant1,'merchant_gst'=>$Merchantgst1,'HSN'=>$hsn1,'value_before_gst'=>$valuebeforegST1,'sgst'=>$SGST1,'cgst'=>$CGST1,'igst'=>$IGST1,'total'=>$totalamount1,'description'=>$description1,'document'=>$document);
|
||||
else
|
||||
{
|
||||
if($deleteflag == 0)
|
||||
{
|
||||
$document = $oldfile;
|
||||
}
|
||||
else if($deleteflag == 1)
|
||||
{
|
||||
$document = null;
|
||||
}
|
||||
}
|
||||
$updateaccount = array('type'=>$option,'account_code'=>$accountcode1,'date'=>$date,'towhom'=>$towhome1,'invoice_no'=>$Invoiceno1,'merchant'=>$merchant1,'merchant_gst'=>$Merchantgst1,'HSN'=>$hsn1,'value_before_gst'=>$valuebeforegST1,'sgst'=>$SGST1,'cgst'=>$CGST1,'igst'=>$IGST1,'total'=>$totalamount1,'description'=>$description1,'document'=>$document);
|
||||
//print_r($updateaccount);die();
|
||||
$res = $this->cashbook_model->updatedepartment($updateaccount,$id1);
|
||||
|
||||
@ -384,21 +404,21 @@ $point=0;
|
||||
|
||||
$i = 0;
|
||||
$str = array();
|
||||
$words = array('0' => '', '1' => 'one', '2' => 'two',
|
||||
'3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six',
|
||||
$words = array('0' => '', '1' => 'One', '2' => 'Two',
|
||||
'3' => 'three', '4' => 'Four', '5' => 'Five', '6' => 'Six',
|
||||
'7' => 'seven', '8' => 'eight', '9' => 'nine',
|
||||
'10' => 'ten', '11' => 'eleven', '12' => 'twelve',
|
||||
'13' => 'thirteen', '14' => 'fourteen',
|
||||
'15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',
|
||||
'18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty',
|
||||
'30' => 'thirty', '40' => 'fourty', '50' => 'fifty',
|
||||
'30' => 'thirty', '40' => 'forty', '50' => 'fifty',
|
||||
'60' => 'sixty', '70' => 'seventy',
|
||||
'80' => 'eighty', '90' => 'ninety','06'=>'Zero Six','01'=>'Zero One','02'=>'Zero Two'
|
||||
,'03'=>'Zero Three','04'=>'Zero Four','05'=>'Zero Five','07'=>'Zero Seven','08'=>'Zero Eight','09'=>'Zero Nine');
|
||||
$words1 = array('2' => 'twenty',
|
||||
'3' => 'thirty', '4' => 'fourty',
|
||||
'5' => 'fifty', '6' => 'sixty', '7' => 'seventy',
|
||||
'8' => 'eighty', '9' =>'ninety');
|
||||
'8' => 'eighty', '9' =>'ninty');
|
||||
$words12 = array('11' => 'eleven',
|
||||
'12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen',
|
||||
'15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',
|
||||
|
||||
@ -140,3 +140,18 @@ ERROR - 2017-12-20 13:35:07 --> Severity: Notice --> Undefined index: dom /opt/
|
||||
ERROR - 2017-12-20 13:35:07 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
|
||||
ERROR - 2017-12-20 13:35:07 --> Severity: Notice --> Undefined index: dom /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/mpdf.php 26073
|
||||
ERROR - 2017-12-20 13:35: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 /opt/lampp/htdocs/siddharth_application/application/third_party/mpdf/classes/ttfontsuni.php 51
|
||||
ERROR - 2017-12-20 15:48:46 --> Severity: Warning --> Missing argument 1 for cashbook::editcashbook(), called in C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php on line 360 and defined C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 269
|
||||
ERROR - 2017-12-20 15:48:46 --> Severity: Notice --> Undefined variable: sid C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 272
|
||||
ERROR - 2017-12-20 15:49:06 --> Severity: Notice --> Use of undefined constant RECEIPT - assumed 'RECEIPT' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 315
|
||||
ERROR - 2017-12-20 15:49:06 --> The upload path does not appear to be valid.
|
||||
ERROR - 2017-12-20 15:49:47 --> Severity: Warning --> Missing argument 1 for cashbook::editcashbook(), called in C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php on line 360 and defined C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 269
|
||||
ERROR - 2017-12-20 15:49:47 --> Severity: Notice --> Undefined variable: sid C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 272
|
||||
ERROR - 2017-12-20 15:49:58 --> Severity: Notice --> Use of undefined constant RECEIPT - assumed 'RECEIPT' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 315
|
||||
ERROR - 2017-12-20 15:50:10 --> Severity: Warning --> Missing argument 1 for cashbook::editcashbook(), called in C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php on line 360 and defined C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 269
|
||||
ERROR - 2017-12-20 15:50:10 --> Severity: Notice --> Undefined variable: sid C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 272
|
||||
ERROR - 2017-12-20 15:50:23 --> Severity: Notice --> Use of undefined constant RECEIPT - assumed 'RECEIPT' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 315
|
||||
ERROR - 2017-12-20 15:50:31 --> Severity: Warning --> Missing argument 1 for cashbook::editcashbook(), called in C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php on line 360 and defined C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 269
|
||||
ERROR - 2017-12-20 15:50:31 --> Severity: Notice --> Undefined variable: sid C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 272
|
||||
ERROR - 2017-12-20 15:50:45 --> Severity: Notice --> Use of undefined constant RECEIPT - assumed 'RECEIPT' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 315
|
||||
ERROR - 2017-12-20 15:53:42 --> Severity: Warning --> Missing argument 1 for cashbook::editcashbook(), called in C:\xampp\htdocs\siddharth_application\system\core\CodeIgniter.php on line 360 and defined C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 269
|
||||
ERROR - 2017-12-20 15:53:42 --> Severity: Notice --> Undefined variable: sid C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 272
|
||||
|
||||
@ -64,7 +64,7 @@ class cashbook_model extends CI_Model
|
||||
}
|
||||
function viewdepartment($sid='')
|
||||
{
|
||||
$sql="SELECT ie.*,ac.name FROM t_income_expense ie
|
||||
$sql="SELECT ie.*,ac.name,date_format(ie.date,'%d-%m-%Y')as date FROM t_income_expense ie
|
||||
join t_accountcode ac on ac.code=ie.account_code
|
||||
WHERE ie.id = ?";
|
||||
$query = $this->db->query($sql,array($sid));
|
||||
@ -81,7 +81,8 @@ class cashbook_model extends CI_Model
|
||||
$query = $this->db->query($sql,array($cashid));
|
||||
//print_r($this->db->last_query());
|
||||
//echo $sql;
|
||||
return $query->result();
|
||||
$r = $this->db->affected_rows();
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
||||
@ -94,7 +95,6 @@ class cashbook_model extends CI_Model
|
||||
|
||||
}
|
||||
|
||||
|
||||
function Cashbook($cashbookdatas)
|
||||
{
|
||||
$code=$cashbookdatas['code'];
|
||||
|
||||
@ -114,7 +114,7 @@ function loadAccountType(id)
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Add New Income and Expense</center>
|
||||
<center>Siddharth Industries - Add New Receipt and Payment</center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
@ -46,7 +46,7 @@ if(!empty($DepDetails))
|
||||
$IGST1=$ded->igst;
|
||||
$Description1=$ded->description;
|
||||
$towhom1=$ded->towhom;
|
||||
$file1=$ded->document;
|
||||
//$file1=$ded->document;
|
||||
//echo $file1;
|
||||
}}
|
||||
?>
|
||||
@ -200,14 +200,14 @@ function loadAccountType(id)
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center>Siddharth Industries - Edit Income and Expense</center>
|
||||
<center>Siddharth Industries - Edit Receipt and Payment</center>
|
||||
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div style="text-align:right;">
|
||||
<a href="<?php base_url() ?>ViewIncomeExpense" class="btn btn-primary" value="Back"/>Back</a>
|
||||
<a href="<?php base_url() ?>incomeExpenseList" class="btn btn-primary" value="Back"/>Back</a>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
@ -231,27 +231,27 @@ function loadAccountType(id)
|
||||
<div class="form-group">
|
||||
<b><span for="Accountcode">Select Accounut type:</span> </b> </br></br>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
<!-- <td>
|
||||
<?php echo form_label('RECEIPT', 'RECEIPT') ." ". form_radio(array("name"=>"Range","id"=>"RECEIPT","value"=>"RECEIPT", 'checked'=>('RECEIPT' == $type1) ? TRUE : FALSE,'onchange'=>'SetVatorCST();')); ?> </td>
|
||||
|
||||
<td><?php echo form_label('PAYMENT', 'PAYMENT') ." ". form_radio(array("name"=>"Range","id"=>"PAYMENT","value"=>"PAYMENT", 'checked'=>('PAYMENT' == $type1) ? TRUE : FALSE,'onchange'=>'SetVatorCST();')); ?>
|
||||
</td> -->
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<input type="radio" onclick = "loadAccountType(this.id);" id="myradio1" name="myradio" value="1" >RECEIPT
|
||||
<input type="radio" onclick = "loadAccountType(this.id);" id="myradio2" name="myradio" value="2" >PAYMENT
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</tr>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group"><b>
|
||||
@ -407,9 +407,15 @@ function loadAccountType(id)
|
||||
<input type="button" onclick="DeleteRow();"class="btn btn-primary" value="Delete" />
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/ value="<?php echo $file1; ?>">
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
<input type="hidden" id="oldfile" style="text-align:right;" name="oldfile" value="<?php echo $document; ?>">
|
||||
<input type="hidden" id="deleteflag" style="text-align:right;" name="deleteflag" value="0">
|
||||
|
||||
</div>
|
||||
<!--<div class="col-md-2">
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<img id="slip" alt="your image" style="width: 139px;"/><br/>
|
||||
@ -571,6 +577,8 @@ function GSTvalue(id)
|
||||
// });
|
||||
function DeleteRow()
|
||||
{
|
||||
|
||||
$('#deleteflag').val(1);
|
||||
var file = "<?php echo $file1;?>";
|
||||
//var id2='';
|
||||
var id2= $('#id1').val();
|
||||
@ -581,17 +589,19 @@ $.ajax({
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>cashbook/deletefile",
|
||||
success:function(data) {
|
||||
if(data)
|
||||
if(data==1)
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
alert(data);
|
||||
window.location ="cashbook/incomeExpenseList";
|
||||
alert('Delete Successfully');
|
||||
$('#receipt').attr('src', '');
|
||||
//window.location ="cashbook/incomeExpenseList";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('delete successfully');
|
||||
window.location ="incomeExpenseList";
|
||||
alert('No file');
|
||||
|
||||
//window.location ="incomeExpenseList";
|
||||
}
|
||||
|
||||
}});
|
||||
|
||||
@ -653,7 +653,7 @@ $(function() {
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>ViewIncomeExpense">
|
||||
<i class="fa fa-credit-card"></i>
|
||||
<span>Income and Expense</span>
|
||||
<span>Receipt and Payment</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
@ -67,24 +67,9 @@ if(!empty($todayincome))
|
||||
|
||||
|
||||
?>
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
|
||||
<link href="<?php echo base_url();?>assets/plugins/morris/morris.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
</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="…";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+" "+
|
||||
f,id:0===r&&"string"===typeof a?g.sTableId+"_"+a:null}).append(b("<a>",{href:"#","aria-controls":g.sTableId,"data-dt-idx":n,tabindex:g.iTabIndex}).html(d)).appendTo(c),g.oApi._fnBindAction(o,{action:a},l),n++)}},h;try{h=b(q.activeElement).data("dt-idx")}catch(l){}p(b(e).empty().html('<ul class="pagination"/>').children("ul"),s);h&&b(e).find("[data-dt-idx="+h+"]").focus()};c.TableTools&&(b.extend(!0,c.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},
|
||||
collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},select:{row:"active"}}),b.extend(!0,c.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))};"function"===typeof define&&define.amd?define(["jquery","datatables"],e):"object"===typeof exports?e(require("jquery"),require("datatables")):jQuery&&e(jQuery,jQuery.fn.dataTable)})(window,document);
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
@ -109,11 +94,11 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
.btn-success {
|
||||
background-color: #3c8dbc;
|
||||
border-color: #3c8dbc;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
</style>
|
||||
</style>
|
||||
<div>
|
||||
<section class="content-header">
|
||||
|
||||
@ -341,174 +326,3 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
<script src="<?php echo base_url();?>assets/plugins/chartjs/Chart.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/knob/jquery.knob.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* ChartJS
|
||||
* -------
|
||||
* Here we will create a few charts using ChartJS
|
||||
*/
|
||||
|
||||
//-----------------------
|
||||
//- MONTHLY SALES CHART -
|
||||
//-----------------------
|
||||
|
||||
// Get context with jQuery - using jQuery's .get() method.
|
||||
|
||||
|
||||
/* ChartJS
|
||||
* -------
|
||||
* Here we will create a few charts using ChartJS
|
||||
*/
|
||||
|
||||
//-----------------------
|
||||
//- MONTHLY SALES CHART -
|
||||
//-----------------------
|
||||
|
||||
// Get context with jQuery - using jQuery's .get() method.
|
||||
var salesChartCanvas = $("#salesChart").get(0).getContext("2d");
|
||||
// This will get the first returned node in the jQuery collection.
|
||||
|
||||
var salesChart = new Chart(salesChartCanvas);
|
||||
|
||||
|
||||
var service = <?php echo JSON_encode($gettoptotal1)?>;
|
||||
|
||||
//var service = <?php echo JSON_encode($getTotalServicePoCount)?>;
|
||||
// alert(service+'hai');
|
||||
//print_r($gettoptotal1);
|
||||
var Import = <?php echo JSON_encode($getTotalimportPoCount)?>;
|
||||
var capital = <?php echo JSON_encode($getTotalcapitalPoCount)?>;
|
||||
var revenue = <?php echo JSON_encode($getTotalrevenuePoCount)?>;
|
||||
|
||||
//alert(service.PONO);
|
||||
var serviceValues = [];
|
||||
// var arr = new Array();
|
||||
$.each (service,function(idx,obj){
|
||||
serviceValues.push(obj[0].tot);
|
||||
});
|
||||
var ImportValues = [];
|
||||
// var arr = new Array();
|
||||
$.each (Import,function(idx,obj){
|
||||
ImportValues.push(obj[0].totalImport);
|
||||
});
|
||||
var capitalValues = [];
|
||||
// var arr = new Array();
|
||||
$.each (capital,function(idx,obj){
|
||||
capitalValues.push(obj[0].totalcapital);
|
||||
});
|
||||
var revenueValues = [];
|
||||
// var arr = new Array();
|
||||
$.each (revenue,function(idx,obj){
|
||||
revenueValues.push(obj[0].totalrevenue);
|
||||
});
|
||||
|
||||
|
||||
//alert(arr.total2);
|
||||
var salesChartData = {
|
||||
labels: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
|
||||
datasets: [
|
||||
|
||||
{
|
||||
label: "Electronics",
|
||||
fillColor: "rgba(0, 192, 239, 0.2)",
|
||||
strokeColor: "rgba(0, 192, 239,0.6)",
|
||||
pointColor: "#00c0ef ",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data:serviceValues
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
label: "Digital Goods",
|
||||
fillColor: "rgba(221, 75, 57,0.2)",
|
||||
strokeColor: "rgba(221, 75, 57,0.8)",
|
||||
pointColor: "#dd4b39 ",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data:revenueValues
|
||||
},
|
||||
{
|
||||
label: "Food",
|
||||
fillColor: "rgba(0, 166, 90, 0.2)",
|
||||
strokeColor: "rgba(0, 166, 90,0.8)",
|
||||
pointColor: "#00a65a ",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1",
|
||||
data:ImportValues
|
||||
},
|
||||
{
|
||||
label: "Food",
|
||||
fillColor: "rgba(243, 156, 18, 0.2)",
|
||||
strokeColor: "rgba(243, 156, 18,0.8)",
|
||||
pointColor: "#f39c12 ",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1",
|
||||
data:capitalValues
|
||||
}
|
||||
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
var salesChartOptions = {
|
||||
//Boolean - If we should show the scale at all
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: false,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 4,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 20,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 5,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
//String - A legend template
|
||||
legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].lineColor%>\"></span><%=datasets[i].label%></li><%}%></ul>",
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true
|
||||
};
|
||||
|
||||
// alert(salesChartData);
|
||||
|
||||
//Create the line chart
|
||||
salesChart.Line(salesChartData, salesChartOptions);
|
||||
|
||||
//---------------------------
|
||||
//- END MONTHLY SALES CHART -
|
||||
//- PIE CHART -
|
||||
//-------------
|
||||
// Get context with jQuery - using jQuery's .get() method.
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
BIN
uploads/cashbook/12.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/121.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/1210.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/1211.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/1212.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/122.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/123.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/124.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/125.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/126.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/127.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/128.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
BIN
uploads/cashbook/129.jpg
Normal file
|
After Width: | Height: | Size: 886 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 28 KiB |
BIN
uploads/cashbook/2.jpg
Normal file
|
After Width: | Height: | Size: 770 KiB |
BIN
uploads/cashbook/21.jpg
Normal file
|
After Width: | Height: | Size: 770 KiB |
BIN
uploads/cashbook/22.jpg
Normal file
|
After Width: | Height: | Size: 770 KiB |
BIN
uploads/cashbook/23.jpg
Normal file
|
After Width: | Height: | Size: 770 KiB |