Merge : GWM
This commit is contained in:
parent
6b29d75716
commit
df5b730056
@ -33,7 +33,7 @@ class Sales extends BaseController
|
||||
$data['this_year_sales'] = $this->ipinvoice_model->thisYearSales();
|
||||
$data['this_year_sales_trend'] = $this->ipinvoice_model->thisYearSalesTrend();
|
||||
$data['get_today_invoices'] = $this->ipinvoice_model->getTodayInvoices();
|
||||
|
||||
// dd($data);
|
||||
// Define months from April to March
|
||||
$months = ['Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Jan', 'Feb', 'Mar'];
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ class Employeedetails_model extends Model
|
||||
$builder = $this->db->table('t_employee_details Emp')
|
||||
->select(' Emp.*,Dep.DepartmentName as DepartmentName')
|
||||
->join('t_departmentdetails Dep', 'Emp.Departmentcode = Dep.DEPCode', 'left')
|
||||
->orderBy("Emp.EmpID", "desc");
|
||||
->orderBy("Emp.EmpID", "asc");
|
||||
|
||||
$query = $builder->get();
|
||||
|
||||
|
||||
@ -155,24 +155,7 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
|
||||
<!-- <script type="text/javascript">
|
||||
|
||||
$(function () {
|
||||
|
||||
$('#datatable').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true,
|
||||
"pageLength": 10,
|
||||
"lengthMenu": [10, 25, 50, 100]
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script> -->
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.ext.type.order['date-eu-pre'] = function(date) {
|
||||
@ -184,12 +167,12 @@
|
||||
var table = $('#datatable').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
||||
'csv', 'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options
|
||||
// responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Today Sales -->
|
||||
<div class="col-xl-4">
|
||||
<div class="col-lg-4 col-xl-4">
|
||||
<div class="card">
|
||||
<div class="card-body" style="height: 150px;">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
@ -41,7 +41,7 @@
|
||||
<div class="text-left">
|
||||
<p class="text-muted mb-0">Sales in Rs.</p>
|
||||
<h4 class="mb-1 mt-0">
|
||||
<span data-plugin="counterup" class="card_font_colorset_green"><?php echo number_format($today_sales->Sales, 2); ?></span>
|
||||
<span data-plugin="counterup" class="card_font_colorset_green"><?php echo number_format($today_sales->Sales, 2, '.', ','); ?></span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
@ -50,7 +50,7 @@
|
||||
</div>
|
||||
|
||||
<!-- This Month Sales -->
|
||||
<div class="col-xl-4">
|
||||
<div class="col-lg-4 col-xl-4">
|
||||
<div class="card">
|
||||
<div class="card-body" style="height: 150px;">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
@ -71,7 +71,7 @@
|
||||
<div class="text-left">
|
||||
<p class="text-muted mb-0">Sales in Rs.</p>
|
||||
<h4 class="mb-1 mt-0">
|
||||
<span data-plugin="counterup" class="card_font_colorset_bule"><?php echo number_format($this_month_sales->Sales, 2); ?></span>
|
||||
<span data-plugin="counterup" class="card_font_colorset_bule"><?php echo number_format($this_month_sales->Sales, 2, '.', ','); ?></span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
@ -80,7 +80,7 @@
|
||||
</div>
|
||||
|
||||
<!-- This Year Sales -->
|
||||
<div class="col-xl-4">
|
||||
<div class="col-lg-4 col-xl-4">
|
||||
<div class="card">
|
||||
<div class="card-body" style="height: 150px;">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
@ -101,7 +101,7 @@
|
||||
<div class="text-left">
|
||||
<p class="text-muted mb-0">Sales in Rs.</p>
|
||||
<h4 class="mb-1 mt-0">
|
||||
<span data-plugin="counterup" class="card_font_colorset_red"><?php echo number_format($this_year_sales->Sales, 2); ?></span>
|
||||
<span data-plugin="counterup" class="card_font_colorset_red"><?php echo number_format($this_year_sales->Sales, 2, '.', ','); ?></span>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
@ -109,6 +109,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xl-12 col-md-12">
|
||||
@ -195,7 +197,7 @@
|
||||
$('#datatable-buttonss').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
||||
'csv', 'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
lengthMenu: [
|
||||
@ -203,9 +205,7 @@
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [
|
||||
[0, 'desc']
|
||||
], // Default ordering (column index 0, ascending)
|
||||
order:false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
@ -244,12 +244,13 @@
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
|
||||
y: {
|
||||
beginAtZero: true, // Ensures the y-axis starts at zero
|
||||
ticks: {
|
||||
stepSize: 10000000, // Sets the interval between ticks
|
||||
callback: function(value) {
|
||||
return value; // Return plain number without formatting
|
||||
return value.toLocaleString('en-IN'); // Return plain number without formatting
|
||||
}
|
||||
},
|
||||
min: 0, // Minimum value for y-axis
|
||||
|
||||
@ -280,7 +280,7 @@
|
||||
var table = $('#datatable-buttosns').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
||||
'csv', 'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
lengthMenu: [
|
||||
@ -290,7 +290,7 @@
|
||||
responsive: true, // Responsive table
|
||||
order: [
|
||||
[0, 'desc']
|
||||
], // Default ordering (column index 0, descending)
|
||||
],
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
Loading…
Reference in New Issue
Block a user