Subversion Repositories SmartDukaan

Rev

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

Rev 25210 Rev 25214
Line 591... Line 591...
591
										<div class="title">MTD</div>						
591
										<div class="title">MTD</div>						
592
									</div>						
592
									</div>						
593
								</div>
593
								</div>
594
							</div>
594
							</div>
595
						</div>
595
						</div>
-
 
596
						<div class="col-lg-5">
-
 
597
							<div class="info-box blue-bg">
-
 
598
								<i class="fa fa-chart-line"></i>
-
 
599
								<h3 style="margin-top:-2px;margin-bottom:12px"><strong>Targets</strong></h3>
-
 
600
								<div class="row">
-
 
601
									<div class="col-lg-4">
-
 
602
										<div style="margin-top:0px" class="count currency">$salesMap.get("todayTarget")</div>
-
 
603
										<div class="title">Today&apos;s</div>
-
 
604
									</div>
596
						<div class="col-lg-4 row">
605
									<div class="col-lg-4 row">
-
 
606
										<div style="margin-top:0px" class="count currency">$salesMap.get("monthTarget")</div>
-
 
607
										<div class="title">Monthly</div>						
-
 
608
									</div>						
-
 
609
								</div>
-
 
610
							</div>
-
 
611
						</div>
-
 
612
						<div class="col-lg-4">
597
							<div class="info-box green-bg">
613
							<div class="info-box green-bg">
598
								<i class="fa fa-cubes"></i>
614
								<i class="fa fa-cubes"></i>
599
								<div class="count currency">$investments.get("inStock")</div>
615
								<div class="count currency">$investments.get("inStock")</div>
600
								<div class="title">Total Stock</div>						
616
								<div class="title">Total Stock</div>						
601
							</div>
617
							</div>
Line 604... Line 620...
604
					<div class="row">
620
					<div class="row">
605
						#foreach($brandStockPrice in $brandStockPrices)
621
						#foreach($brandStockPrice in $brandStockPrices)
606
						<div class="col-lg-3">
622
						<div class="col-lg-3">
607
							<div class="card card-default">
623
							<div class="card card-default">
608
								<span class="card-body" style="padding-bottom:0px">
624
								<span class="card-body" style="padding-bottom:0px">
-
 
625
									<h3 style="color:#727272;font-size:17px;font-weight:700">
-
 
626
										MTD Sales / $brandStockPrice.getTotalQty()pc
-
 
627
									</h3>
-
 
628
									<table>
-
 
629
									<thead>
-
 
630
										<tr><td colspan="2">MTD Sales</td></tr>
-
 
631
									</thead>
-
 
632
									<tbody>
-
 
633
										<tr><th>Qty</th><td></td></tr>
-
 
634
										<tr><th>Value</th><td></td></tr>
-
 
635
									</tbody>
-
 
636
									</table>
-
 
637
									<table>
-
 
638
									<thead>
-
 
639
										<tr><td colspan="2">Current Stock</td></tr>
-
 
640
									</thead>
-
 
641
									<tbody>
609
									<h3 style="color:#727272;font-size:17px;font-weight:700"><span class="currency">$brandStockPrice.getTotalValue()</span> / $brandStockPrice.getTotalQty()pc</h3>
642
										<tr><th>Qty</th><td><span class="currency">$brandStockPrice.getTotalValue()</span></td></tr>
-
 
643
										<tr><th>Value</th><td>$brandStockPrice.getTotalQty()pc</td></tr>
-
 
644
									</tbody>
-
 
645
									</table>
610
									#if($brandStockPrice.getAgedValue()>0)
646
									#if($brandStockPrice.getAgedValue()>0)
-
 
647
									<p style="color:#d15a57;font-weight:700" title="Focus Stock">
611
									<p style="color:#d15a57;font-weight:700" title="Focus Stock"><span class="currency">$brandStockPrice.getAgedValue()</span> / $brandStockPrice.getAgedQty()</p>
648
										<span class="currency">$brandStockPrice.getAgedValue()</span> / $brandStockPrice.getAgedQty()
-
 
649
									</p>
612
									#else
650
									#else
613
									<p>&nbsp;</p>
651
									<p>&nbsp;</p>
614
									#end
652
									#end
615
								</span>
653
								</span>
616
								<span class="card-img">
654
								<span class="card-img">
Line 823... Line 861...
823
	inStockAmount = numberToComma($partnerInvestment.getInStockAmount());
861
	inStockAmount = numberToComma($partnerInvestment.getInStockAmount());
824
	walletAmount = numberToComma($partnerInvestment.getWalletAmount());
862
	walletAmount = numberToComma($partnerInvestment.getWalletAmount());
825
	shortAmount = numberToComma($partnerInvestment.getShortInvestment());
863
	shortAmount = numberToComma($partnerInvestment.getShortInvestment());
826
	minAmountToBeAdded = numberToComma($partnerInvestment.getMinAmountToBeAdded());
864
	minAmountToBeAdded = numberToComma($partnerInvestment.getMinAmountToBeAdded());
827
 	isInvestmentOk = $isInvestmentOk;
865
 	isInvestmentOk = $isInvestmentOk;
828
    #end  
-
 
829
	$(function(){
866
	$(function(){
830
		if (navigator.geolocation) {
867
		if (navigator.geolocation) {
831
	        navigator.geolocation.getCurrentPosition(showPosition);
868
	        navigator.geolocation.getCurrentPosition(showPosition);
832
	    } else { 
869
	    } else { 
833
	        console.log("Geolocation is not supported by browser.");
870
	        console.log("Geolocation is not supported by browser.");
Line 839... Line 876...
839
		});
876
		});
840
	});
877
	});
841
	
878
	
842
	hasGift=$hasGift;
879
	hasGift=$hasGift;
843
	giftItemId = $giftItemId;
880
	giftItemId = $giftItemId;
-
 
881
	monthDays=$monthDays;
-
 
882
	dayOfMonth = $dayOfMonth;
844
 	function initGauge(){
883
 	function initGauge(){
845
		monthDays=$monthDays;
-
 
846
		dayOfMonth = $dayOfMonth;
-
 
847
		var opts = {
884
		var opts = {
848
		  angle: 0, // The span of the gauge arc
885
		  angle: 0, // The span of the gauge arc
849
		  lineWidth: 0.1, // The line thickness
886
		  lineWidth: 0.1, // The line thickness
850
		  radiusScale: 0.5, // Relative radius
887
		  radiusScale: 0.5, // Relative radius
851
		  pointer: {
888
		  pointer: {
Line 877... Line 914...
877
		
914
		
878
	}
915
	}
879
	$(function(){
916
	$(function(){
880
	
917
	
881
		initGauge();
918
		initGauge();
882
		$("li.accessories").on('click', function(){
-
 
883
			if(!$(this).hasClass('active')) {
-
 
884
				
-
 
885
				if($("li.mobile").hasClass('active'))
-
 
886
				{
-
 
887
					$("li.mobile").removeClass('active');
-
 
888
					$("table.brandPerformancemobile").css('display','NONE');
-
 
889
				}
-
 
890
				else if($("li.recharge").hasClass('active'))
-
 
891
				{
-
 
892
					$("li.recharge").removeClass('active');
-
 
893
					$("table.brandPerformancerecharge").css('display','NONE');
-
 
894
				}
-
 
895
				else
-
 
896
				{
-
 
897
					$("li.insurance").removeClass('active');
-
 
898
					$("table.brandPerformanceinsurance").css('display','NONE');
-
 
899
				}
-
 
900
				$("table.brandPerformanceaccessories").removeAttr("style");
-
 
901
				$(this).addClass('active');
-
 
902
			}
-
 
903
		});
-
 
904
		$("li.mobile").on('click', function(){
-
 
905
			if(!$(this).hasClass('active')) {
-
 
906
				
-
 
907
				if($("li.accessories").hasClass('active'))
-
 
908
				{
-
 
909
					$("li.accessories").removeClass('active');
-
 
910
					$("table.brandPerformanceaccessories").css('display','NONE');
-
 
911
				}
-
 
912
				else if($("li.recharge").hasClass('active'))
-
 
913
				{
-
 
914
					$("li.recharge").removeClass('active');
-
 
915
					$("table.brandPerformancerecharge").css('display','NONE');
-
 
916
				}
-
 
917
				else
-
 
918
				{
-
 
919
					$("li.insurance").removeClass('active');
-
 
920
					$("table.brandPerformanceinsurance").css('display','NONE');
-
 
921
				}
-
 
922
				$("table.brandPerformancemobile").removeAttr("style");
-
 
923
				$(this).addClass('active');
-
 
924
			}
-
 
925
		});
-
 
926
		$('#links_bar').popover({
919
		$('#links_bar').popover({
927
			container:".notification-row",
920
			container:".notification-row",
928
			template:`<div class="popover">
921
			template:`<div class="popover">
929
							<div class="arrow"></div>
922
							<div class="arrow"></div>
930
							<div class="popover-inner">
923
							<div class="popover-inner">
Line 944... Line 937...
944
							</div>
937
							</div>
945
		    			</div>`,
938
		    			</div>`,
946
		    placement: "bottom",
939
		    placement: "bottom",
947
		    trigger: "focus"
940
		    trigger: "focus"
948
		});
941
		});
949
		$("li.recharge").on('click', function(){
-
 
950
			if(!$(this).hasClass('active')) {
-
 
951
			
-
 
952
				if($("li.accessories").hasClass('active'))
-
 
953
				{
-
 
954
					$("li.accessories").removeClass('active');
-
 
955
					$("table.brandPerformanceaccessories").css('display','NONE');
-
 
956
				}
-
 
957
				else if($("li.mobile").hasClass('active'))
-
 
958
				{
-
 
959
					$("li.mobile").removeClass('active');
-
 
960
					$("table.brandPerformancemobile").css('display','NONE');
-
 
961
				}
-
 
962
				else
-
 
963
				{
-
 
964
					$("li.insurance").removeClass('active');
-
 
965
					$("table.brandPerformanceinsurance").css('display','NONE');
-
 
966
				}
-
 
967
					$("table.brandPerformancerecharge").removeAttr("style");
-
 
968
				$(this).addClass('active');
-
 
969
			}
-
 
970
		});
-
 
971
		$("li.insurance").on('click', function(){
-
 
972
			if(!$(this).hasClass('active')) {
-
 
973
			
-
 
974
				if($("li.accessories").hasClass('active'))
-
 
975
				{
-
 
976
					$("li.accessories").removeClass('active');
-
 
977
					$("table.brandPerformanceaccessories").css('display','NONE');
-
 
978
				}
-
 
979
				else if($("li.mobile").hasClass('active'))
-
 
980
				{
-
 
981
					$("li.mobile").removeClass('active');
-
 
982
					$("table.brandPerformancemobile").css('display','NONE');
-
 
983
				}
-
 
984
				else
-
 
985
				{
-
 
986
					$("li.recharge").removeClass('active');
-
 
987
					$("table.brandPerformancerecharge").css('display','NONE');
-
 
988
				}
-
 
989
					$("table.brandPerformanceinsurance").removeAttr("style");
-
 
990
				$(this).addClass('active');
-
 
991
			}
-
 
992
		});
-
 
993
	});
-
 
994
	 function activeAnnoucements(id) {
-
 
995
	 console.log(id);
-
 
996
	
-
 
997
	 if (confirm("Are you sure you want to active the annoucement") == true) {
-
 
998
	  doPostAjaxRequestHandler(context
-
 
999
									+ "/activeNotificationData?id="+id, function(
-
 
1000
									response) {
-
 
1001
								if (response == 'true') {
-
 
1002
									alert("successfully Inactive");
-
 
1003
									location.reload();
-
 
1004
								}
-
 
1005
							});
-
 
1006
 
-
 
1007
							return false;
-
 
1008
						}
-
 
1009
	 }
-
 
1010
 
-
 
1011
		
-
 
1012
		
-
 
1013
		
-
 
1014
 #if(!$isAdmin)
-
 
1015
	var stopInterval;
942
	var stopInterval;
1016
	$(document).ready(function(){
943
	$(document).ready(function(){
1017
		 stopInterval = setInterval(showAttendanceModal, 100000000);
944
		 stopInterval = setInterval(showAttendanceModal, 100000000);
1018
	});
945
	});
1019
 
946
 
Line 1037... Line 964...
1037
			});	
964
			});	
1038
		}
965
		}
1039
	}
966
	}
1040
 #end
967
 #end
1041
</script>
968
</script>
1042
 
-
 
1043
 
-
 
1044
 
-
 
1045
    <div id="punchInOutModal" class="modal fade" role="dialog">
969
    <div id="punchInOutModal" class="modal fade" role="dialog">
1046
	  <div class="modal-dialog">
970
	  <div class="modal-dialog">
1047
	
971
	
1048
	    <!-- Modal content-->
972
	    <!-- Modal content-->
1049
	    <div class="modal-content">
973
	    <div class="modal-content">