Subversion Repositories SmartDukaan

Rev

Rev 27868 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27868 Rev 27893
Line 1... Line -...
1
<link href="https://cdn.datatables.net/fixedcolumns/3.3.0/css/fixedColumns.bootstrap.css" rel="stylesheet"/>
-
 
2
 
-
 
3
 
-
 
4
 
-
 
5
<section class="wrapper">
1
<section class="wrapper">
6
	<div class="row">
2
	<div class="row">
7
		<div class="col-lg-12">
3
		<div class="col-lg-12">
8
			<h3 class="page-header"><i class="icon_document_alt"></i>Details</h3>
4
			<h3 class="page-header"><i class="icon_document_alt"></i>Details</h3>
9
			<ol class="breadcrumb">
5
			<ol class="breadcrumb">
Line 17... Line 13...
17
  
13
  
18
			<div class="col-lg-12">
14
			<div class="col-lg-12">
19
				 <table id="billingBrandItem" class="table table-striped table-advance table-hover">
15
				 <table id="billingBrandItem" class="table table-striped table-advance table-hover">
20
				 <thead>
16
				 <thead>
21
				 <tr>
17
				 <tr>
22
				 <th rowspan="2">Warehouse</th>
18
				 <th rowspan="3">Warehouse</th>
23
				 <th rowspan="2">Brand</th>
19
				 <th rowspan="3">Brand</th>
-
 
20
				 <th rowspan="3">Qty</th>
24
				 <th rowspan="2">Total</th>
21
				 <th rowspan="3">Total</th>
25
			 	  #foreach($dr in $dateRange)
22
			 	  #foreach($dr in $dateRange)
26
				  
23
				  
27
				   <th colspan= 2> $dr.format($dateMonthFormatter) </th>
24
				   <th colspan= 2> $dr.format($dateMonthFormatter) </th>
28
				  #end
25
				  #end
29
				  </tr>
26
				  </tr>
-
 
27
				 
-
 
28
				 
30
				  <tr>
29
				 <tr>
-
 
30
			 	  #foreach($dr in $dateRange)
-
 
31
			 	  #if($dateWiseQtyTotal.get($dr))
-
 
32
				   <td> $dateWiseQtyTotal.get($dr) </td>
-
 
33
				   <td class="currency"> $dateWiseTotal.get($dr)</td>
-
 
34
				   #else
-
 
35
				   <td> - </td>
-
 
36
				   <td> -</td>
-
 
37
				   #end
-
 
38
				  #end
-
 
39
			 	</tr>
-
 
40
			
-
 
41
				 <tr>
31
			 	  #foreach($dr in $dateRange)
42
			 	  #foreach($dr in $dateRange)
32
				   <th> Qty </th>
43
				   <th> Qty </th>
33
				   <th> Val </th>
44
				   <th> Val </th>
34
				  #end
45
				  #end
35
			 	</tr>
46
			   	</tr>
-
 
47
			
-
 
48
			
36
				 </thead>
49
				 </thead>
37
	    			<tbody>
50
	    			<tbody>
38
	    			
51
	    			
-
 
52
	    	
-
 
53
	    			
39
	    		 #foreach($bwo in $brandWarehouseOrderMap.entrySet())
54
	    		 #foreach($bwo in $brandWarehouseOrderMap.entrySet())
40
	    		      <tr>
55
	    		      <tr>
41
	    			 <td> $warehouseMap.get($bwo.getKey().getWarehouseId())</td>
56
	    			  <td> $warehouseMap.get($bwo.getKey().getWarehouseId())</td>
42
	    			 <td> $bwo.getKey().getBrand()</td>
57
	    			  <td> $bwo.getKey().getBrand()</td>
-
 
58
	    			  <td data-date = "$dateRange"  data-brand = "$bwo.getKey().getBrand()" data-warehouseid = "$bwo.getKey().getWarehouseId()"> $bwo.getKey().getQty()</td>
43
	    			  <td class="currency"> $bwo.getKey().getTotal()</td>
59
	    			  <td class="currency" data-date = "$dateRange"  data-brand = "$bwo.getKey().getBrand()" data-warehouseid = "$bwo.getKey().getWarehouseId()"> $bwo.getKey().getTotal()</td>
44
	    			 #foreach($dr in $dateRange)
60
	    			 #foreach($dr in $dateRange)
45
	    			  #if($bwo.getValue().get($dr))
61
	    			  #if($bwo.getValue().get($dr))
46
				       <td data-date = "$dr"  data-brand = "$bwo.getKey().getBrand()" data-warehouseid = "$bwo.getKey().getWarehouseId()"> $bwo.getValue().get($dr).getQty()</td>
62
				       <td data-date = "$dr"  data-brand = "$bwo.getKey().getBrand()" data-warehouseid = "$bwo.getKey().getWarehouseId()"> $bwo.getValue().get($dr).getQty()</td>
47
				       <td  data-date = "$dr"  data-brand = "$bwo.getKey().getBrand()" data-warehouseid = "$bwo.getKey().getWarehouseId()"> $bwo.getValue().get($dr).getValue() </td>
63
				       <td class="" data-date = "$dr"  data-brand = "$bwo.getKey().getBrand()" data-warehouseid = "$bwo.getKey().getWarehouseId()"> $bwo.getValue().get($dr).getValue() </td>
48
				     #else
64
				     #else
49
				       <td> - </td>
65
				       <td> - </td>
50
				       <td> - </td>
66
				       <td> - </td>
51
				     #end
67
				     #end
52
				     #end
68
				     #end
Line 69... Line 85...
69
<script type="text/javascript">
85
<script type="text/javascript">
70
 var table = $('#billingBrandItem').DataTable( {
86
 var table = $('#billingBrandItem').DataTable( {
71
        "scrollX": true,
87
        "scrollX": true,
72
            "pageLength": 25,
88
            "pageLength": 25,
73
             "fixedColumns":   {
89
             "fixedColumns":   {
74
               leftColumns: 3
90
               leftColumns: 2
75
            
91
            
76
        }
92
        }
77
            
93
            
78
    } );
94
    } );
79
    
95
    
Line 83... Line 99...
83
    
99
    
84
    if(cell_value == "-"){
100
    if(cell_value == "-"){
85
    
101
    
86
    return false;
102
    return false;
87
    }
103
    }
-
 
104
    
-
 
105
   
88
    var dataDate =  $(this).data('date');
106
    var dataDate =  $(this).data('date').replace(/[\[\]']+/g,'');
89
    var brand = $(this).data('brand');
107
    var brand = $(this).data('brand')
90
    var warehouseId = $(this).data('warehouseid');
108
    var warehouseId = $(this).data('warehouseid');
-
 
109
    
-
 
110
     if(brand == undefined){
-
 
111
    return false;
-
 
112
    }
91
    console.log(cell_value);
113
    console.log(cell_value);
92
    console.log(dataDate);
114
    console.log(dataDate);
93
      console.log(warehouseId);
115
      console.log(warehouseId);
94
      
116
   
95
      	doGetAjaxRequestHandler(context + "/getSecondaryBillingItemByBrand?warehouseId="
117
      	doGetAjaxRequestHandler(context + "/getSecondaryBillingItemByBrand?warehouseId="
96
						+ warehouseId+ "&brand="+brand + "&date="+dataDate, function(response) {
118
						+ warehouseId+ "&brand="+brand + "&date="+dataDate, function(response) {
97
 
119
 
98
					$('.' + "item-wise-container").html(response);
120
					$('.' + "item-wise-container").html(response);
99
						console.log(response)
121
						console.log(response)