Subversion Repositories SmartDukaan

Rev

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

Rev 31155 Rev 31156
Line 54... Line 54...
54
	       	
54
	       	
55
	    <div class = "row col-lg-6">
55
	    <div class = "row col-lg-6">
56
	     		  
56
	     		  
57
        <div class="form-group col-lg-3">
57
        <div class="form-group col-lg-3">
58
            <label>Partner Type</label>
58
            <label>Partner Type</label>
59
            <select multiple class="criteria-partnertype chosen-select">
59
            <select multiple class="criteria-partnertype chosen-select" style:"width:300%">
60
                #foreach ($partnerType in $partnerTypes)
60
                #foreach ($partnerType in $partnerTypes)
61
                <option value="$partnerType">$partnerType</option>
61
                <option value="$partnerType">$partnerType</option>
62
                #end
62
                #end
63
                      <option value="GREY">GREY</option>
63
                      <option value="GREY">GREY</option>
64
          
64
          
Line 284... Line 284...
284
   console.log(partnerTypes);
284
   console.log(partnerTypes);
285
   var tablePartnerType = data[2];
285
   var tablePartnerType = data[2];
286
   var lastMonthSale = data[4];
286
   var lastMonthSale = data[4];
287
   
287
   
288
   console.log(lastMonthSale)
288
   console.log(lastMonthSale)
-
 
289
   lastMonthSale = lastMonthSale.replace(/,/g, "");
-
 
290
   
-
 
291
   console.log(lastMonthSale)
289
    if (partnerTypes.includes("GREY")) {
292
    if (partnerTypes.includes("GREY")) {
290
      if(lastMonthSale < 20000)
293
      if(parseInt(lastMonthSale) < 20000)
291
        return false;
294
        return false;
292
    }
295
    }
293
   
296
   
294
   if (!partnerTypes.includes(tablePartnerType)) {
297
   if (!partnerTypes.includes(tablePartnerType)) {
295
        return true;
298
        return true;