Subversion Repositories SmartDukaan

Rev

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

Rev 33178 Rev 34066
Line 21... Line 21...
21
            <h2 style="color:red;margin-top: 20px;margin-bottom: 10px;margin-left:auto">
21
            <h2 style="color:red;margin-top: 20px;margin-bottom: 10px;margin-left:auto">
22
                $focoSaleReport.getCode() - $focoSaleReport.getName()
22
                $focoSaleReport.getCode() - $focoSaleReport.getName()
23
            </h2>
23
            </h2>
24
            #set($counter =$counter+1)
24
            #set($counter =$counter+1)
25
        #end
25
        #end
-
 
26
        #if($isRBM)
-
 
27
            <div style="padding: 5px 10px; margin-top: 2px"
-
 
28
                 class="col-lg-2 form-group">
-
 
29
                <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
-
 
30
                    <option value="" disabled selected>Partners</option>
-
 
31
                    #foreach($fofoId in $customRetailersMap.keySet())
-
 
32
                        <option value="$fofoId"
-
 
33
                                data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
-
 
34
                    #end
-
 
35
                </select>
-
 
36
            </div>
-
 
37
        #else
26
        <div class="row col-lg-12" style="float: right;">
38
        <div class="row col-lg-12" style="float: right;">
27
            <div class="col-lg-2">
39
            <div class="col-lg-2">
28
                <div class="input-group">
40
                <div class="input-group">
29
                    <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
41
                    <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
30
                           id="typeaheadpartner"
42
                           id="typeaheadpartner"
Line 34... Line 46...
34
                    <br>
46
                    <br>
35
                </div>
47
                </div>
36
            </div>
48
            </div>
37
        </div>
49
        </div>
38
    #end
50
    #end
-
 
51
    #end
39
    <div class="row col-lg-12" style="float: right;">
52
    <div class="row col-lg-12" style="float: right;">
40
 
53
 
41
 
54
 
42
        #springMessage("reportsmysales.from") <input type="date" id="startDate-franchisee-sales" placeholder="" name="" value="$startDate" >
55
        #springMessage("reportsmysales.from") <input type="date" id="startDate-franchisee-sales" placeholder="" name="" value="$startDate" >
43
		     
56
		     
Line 244... Line 257...
244
            partnerId = selectedPartner.partnerId;
257
            partnerId = selectedPartner.partnerId;
245
 
258
 
246
            console.log(partnerId);
259
            console.log(partnerId);
247
        });
260
        });
248
    });
261
    });
-
 
262
    $(function () {
-
 
263
        $('#fofo-users').on('change', function () {
-
 
264
            var selectedFofoId = $(this).val();
-
 
265
            if (selectedFofoId) {
-
 
266
                partnerId = selectedFofoId;
-
 
267
                console.log("Partner ID set to:", partnerId);
-
 
268
            } else {
-
 
269
                alert("Please select a valid Fofo ID.");
-
 
270
            }
-
 
271
        });
-
 
272
    });
249
</script>
273
</script>
250
+#end
274
+#end
251
275