Subversion Repositories SmartDukaan

Rev

Rev 31872 | Rev 31887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31872 Rev 31884
Line 49... Line 49...
49
        }
49
        }
50
 
50
 
51
        .light-red {
51
        .light-red {
52
            background-color: #FBE4D5;
52
            background-color: #FBE4D5;
53
        }
53
        }
-
 
54
        
-
 
55
        th {
-
 
56
          width : 30%
-
 
57
          
-
 
58
        }
54
      
59
      
55
    </style>
60
    </style>
56
 
61
 
57
</head>
62
</head>
58
 
63
 
Line 332... Line 337...
332
                    <tbody>
337
                    <tbody>
333
                    
338
                    
334
                       
339
                       
335
                        <tr>
340
                        <tr>
336
                            <th class="details">Outlet Potential</th>
341
                            <th class="details">Outlet Potential</th>
337
                            <td>$fofoStore.getCounterPotential() </td>
342
                            <td>$nf.format($fofoStore.getCounterPotential())</td>
338
                        </tr>
343
                        </tr>
339
                    </tbody>
344
                    </tbody>
340
                </table>
345
                </table>
341
            </div>
346
            </div>
342
        </div>
347
        </div>
Line 351... Line 356...
351
                <table class="table table-sm">
356
                <table class="table table-sm">
352
                    <tbody>
357
                    <tbody>
353
                        <tr>
358
                        <tr>
354
                            <th class="details">Last courier sent </th>
359
                            <th class="details">Last courier sent </th>
355
                            #if($lastCourierSent)
360
                            #if($lastCourierSent)
356
                            <td class="">$lastCourierSent.format($dateTimeFormatter)</td>
361
                            <td class="">$lastCourierSent.format($dateFormatter)</td>
357
                            #else
362
                            #else
358
                            <td>- </td>
363
                            <td>- </td>
359
                            #end
364
                            #end
360
                        </tr>
365
                        </tr>
361
                        <tr>
366
                        <tr>
Line 374... Line 379...
374
                <table class="table table-sm">
379
                <table class="table table-sm">
375
                    <tbody>
380
                    <tbody>
376
                        <tr>
381
                        <tr>
377
                            <th class="details">Order to billing </th>
382
                            <th class="details">Order to billing </th>
378
                            #if($createdToBillingAverage)
383
                            #if($createdToBillingAverage)
379
                            <td>$createdToBillingAverage days </td>
384
                            <td>$decimalFormatter.format($createdToBillingAverage) days </td>
380
                            #else
385
                            #else
381
                              <td>- </td>
386
                              <td>- </td>
382
                            #end
387
                            #end
383
                        </tr>
388
                        </tr>
384
                        <tr>
389
                        <tr>
385
                            <th class="details">Billing to delivery</th>
390
                            <th class="details">Billing to delivery</th>
386
                            #if($billingToDeliverAverage)
391
                            #if($billingToDeliverAverage)
387
                            <td> $billingToDeliverAverage days </td>
392
                            <td>$decimalFormatter.format($billingToDeliverAverage) days </td>
388
                            #else
393
                            #else
389
                             <td> - </td>
394
                             <td> - </td>
390
                            #end
395
                            #end
391
                        </tr>
396
                        </tr>
392
                    </tbody>
397
                    </tbody>
Line 411... Line 416...
411
                    <tbody>
416
                    <tbody>
412
                        <tr>
417
                        <tr>
413
                            <th class="details">Wallet Value </th>
418
                            <th class="details">Wallet Value </th>
414
                            <td class="">$investment.getWalletAmount()</td>
419
                            <td class="">$investment.getWalletAmount()</td>
415
                        </tr>
420
                        </tr>
-
 
421
                        
-
 
422
                         <tr>
-
 
423
                            <th class="details">Agreed Investment </th>
-
 
424
                            <td class="">$nf.format($investment.getMinInvestment())</td>
-
 
425
                        </tr>
416
                        <tr>
426
                        <tr>
417
                            <th class="details">Current investment</th>
427
                            <th class="details">Current investment</th>
418
                            <td class="light-red">$investment.getTotalInvestment() &nbsp; &nbsp;<span
428
                            <td class="light-red">$nf.format($investment.getTotalInvestment()) &nbsp; &nbsp;<span
419
                                    class="font-weight-bold ">$investment.getShortPercentage() %</span> </td>
429
                                    class="font-weight-bold ">$nf.format($investment.getShortPercentage()) %</span> </td>
420
                        </tr>
430
                        </tr>
421
                        <tr>
431
                        <tr>
422
                            <th class="details">Short / Excess</th>
432
                            <th class="details">Short / Excess</th>
423
                            <td class="light-red">$investment.getShortInvestment() &nbsp; &nbsp;
433
                            <td class="light-red">$nf.format($investment.getShortInvestment()) &nbsp; &nbsp;
424
                            
434
                            
425
                            
435
                            
426
                            
436
                            
427
                             #if($investment.getShortPercentage() <= 0)
437
                             #if($investment.getShortPercentage() <= 0)
428
                                  <span
438
                                  <span
Line 493... Line 503...
493
                            <th scope="col">Value</th>
503
                            <th scope="col">Value</th>
494
                            <th scope="col">Units</th>
504
                            <th scope="col">Units</th>
495
                            <th scope="col">Brand status</th>
505
                            <th scope="col">Brand status</th>
496
                            <th scope="col">Value</th>
506
                            <th scope="col">Value</th>
497
                            <th scope="col">Units</th>
507
                            <th scope="col">Units</th>
-
 
508
                           
498
                        </tr>
509
                        </tr>
499
                    </thead>
510
                    </thead>
500
                    <tbody>
511
                    <tbody>
501
                    
512
                    
502
                     #foreach($brandsDisplay of $brandsDisplays) 
513
                     #foreach($brandsDisplay of $brandsDisplays) 
503
                     #set($brand = $brandsDisplay.getName())
514
                     #set($brand = $brandsDisplay.getName())
504
                        <tr>
515
                        <tr>
505
                            <td class="details">$brand</td>
516
                            <td class="details">$brand</td>
506
                            #if($brandStockMap.get($brand))
517
                            #if($brandStockMap.get($brand))
507
                            <td>$nf.format($brandStockMap.get($brand).getTotalValue())</td>
518
                            <td class="$brandStockMap.get($brand).getColor()">$nf.format($brandStockMap.get($brand).getTotalValue())</td>
508
                            <td>$brandStockMap.get($brand).getTotalQty()</td>
519
                            <td>$brandStockMap.get($brand).getTotalQty()</td>
509
                            #else
520
                            #else
510
                            <td>0</td>
521
                            <td class="$brandStockMap.get($brand).getColor()">0</td>
511
                            <td>0</td>
522
                            <td>0</td>
512
                        
523
                        
513
                            #end
524
                            #end
514
                            #if($retailerBlockBrands.get($brand))
525
                            #if($retailerBlockBrands.get($brand))
515
                            <td>Blocked</td>
526
                            <td>Blocked</td>
Line 528... Line 539...
528
                        </tr>
539
                        </tr>
529
                        
540
                        
530
                       #end
541
                       #end
531
                       
542
                       
532
                       <tr>
543
                       <tr>
533
                       <td> </td>
544
                       <td> Total </td>
534
                          <td> $totalStock</td>
545
                          <td> $totalStock</td>
535
                             <td>$totalQty </td>
546
                             <td>$totalQty </td>
536
                                <td> </td>
547
                                <td> </td>
537
                                 
548
                                 
538
                                 #if($totalGrnPendingStock)
549
                                 #if($totalGrnPendingStock)
Line 619... Line 630...
619
                                       
630
                                       
620
                                        
631
                                        
621
                           
632
                           
622
                                      
633
                                      
623
                                        <tr class="font-weight-bold">
634
                                        <tr class="font-weight-bold">
624
                                         <td class="details"></td>
635
                                         <td class="details">Total</td>
625
                                           #foreach($label of $labels) 
636
                                           #foreach($label of $labels) 
626
                                           #if($yearMonthPurchase.get($label)) 
637
                                           #if($yearMonthPurchase.get($label)) 
627
                                          
638
                                          
628
                                            <td>$nf.format($yearMonthPurchase.get($label)) </td>
639
                                            <td>$nf.format($yearMonthPurchase.get($label)) </td>
629
                                            #else
640
                                            #else
Line 745... Line 756...
745
                                        </tr>
756
                                        </tr>
746
                                        
757
                                        
747
                                        
758
                                        
748
                                        
759
                                        
749
                                          <tr class="font-weight-bold">
760
                                          <tr class="font-weight-bold">
750
                                            <td class="details"></td>
761
                                            <td class="details">Total</td>
751
                                            #foreach($label of $labels) 
762
                                            #foreach($label of $labels) 
752
                                           #if($yearMonthPartnerType.get($label)) 
763
                                           #if($yearMonthPartnerType.get($label)) 
753
                                          
764
                                          
754
                                            <td>$yearMonthPartnerType.get($label).getValue()</td>
765
                                            <td>$yearMonthPartnerType.get($label).getValue()</td>
755
                                            #else
766
                                            #else
Line 812... Line 823...
812
                        </div>
823
                        </div>
813
                        
824
                        
814
                    </div>
825
                    </div>
815
                    <div id="earning" class="container-fluid tab-pane fade"><br>
826
                    <div id="earning" class="container-fluid tab-pane fade"><br>
816
                        <div class="row">
827
                        <div class="row">
817
                            <div class="col-5">
828
                            <div class="col-6">
818
                                <table class="table table-bordered table-sm">
829
                                <table class="table table-bordered table-sm">
819
                                    <thead>
830
                                    <thead>
820
                                        <tr class="orange">
831
                                        <tr class="orange">
821
                                            <th scope="col">Month</th>
832
                                            <th scope="col">Month</th>
822
                                             #foreach($label of $labels) 
833
                                             #foreach($label of $labels) 
Line 847... Line 858...
847
                                        
858
                                        
848
                                            
859
                                            
849
                                         #end   
860
                                         #end   
850
                                        
861
                                        
851
                                          <tr class="font-weight-bold">
862
                                          <tr class="font-weight-bold">
852
                                            <td class="details"></td>
863
                                            <td class="details">Total</td>
853
                                            #foreach($label of $labels) 
864
                                            #foreach($label of $labels) 
854
                                           #if($totalEarningPerMonth.get($label)) 
865
                                           #if($totalEarningPerMonth.get($label)) 
855
                                          
866
                                          
856
                                            <td>$totalEarningPerMonth.get($label)</td>
867
                                            <td>$nf.format($totalEarningPerMonth.get($label))</td>
857
                                            #else
868
                                            #else
858
                                            <td> - </td>
869
                                            <td> - </td>
859
                                            #end
870
                                            #end
860
                                            #end
871
                                            #end
861
 
872
 
Line 863... Line 874...
863
                                       
874
                                       
864
                                    </tbody>
875
                                    </tbody>
865
                                </table>
876
                                </table>
866
 
877
 
867
                            </div>
878
                            </div>
868
                            <div class="col-7 mt-2">
879
                            <div class="col-6 mt-2">
-
 
880
                            
-
 
881
                               
-
 
882
                                
-
 
883
                                <canvas id="chartEarningJSContainer"  width="auto" height="auto"></canvas>
-
 
884
            
869
                               </div>
885
                               </div>
870
                        </div>
886
                        </div>
871
                    </div>
887
                    </div>
872
                </div>
888
                </div>
873
            </div>
889
            </div>
Line 904... Line 920...
904
     
920
     
905
     var opt = $chartTertiary; 
921
     var opt = $chartTertiary; 
906
     var pxt = document.getElementById('chartTertiaryJSContainer').getContext('2d');         
922
     var pxt = document.getElementById('chartTertiaryJSContainer').getContext('2d');         
907
     var chartTer = new Chart(pxt,opt);
923
     var chartTer = new Chart(pxt,opt);
908
     chartTer.update();
924
     chartTer.update();
-
 
925
     
-
 
926
     var ope = $chartEarning; 
-
 
927
     var pxe = document.getElementById('chartEarningJSContainer').getContext('2d');         
-
 
928
     var chartEar = new Chart(pxe,ope);
-
 
929
     chartEar.update();
909
    
930
    
910
    </script>
931
    </script>
911
   </body>
932
   </body>
912
 
933
 
913
</html>
934
</html>