Subversion Repositories SmartDukaan

Rev

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

Rev 34236 Rev 34509
Line 35... Line 35...
35
                                <input id="partnerId" type="hidden">
35
                                <input id="partnerId" type="hidden">
36
                            </td>
36
                            </td>
37
 
37
 
38
                        #end
38
                        #end
39
                    #end
39
                    #end
-
 
40
                    #if(!$isAnalysis)
-
 
41
                        <td style="padding: 5px 10px;"><input placeholder="Set Duration" name="creditNotePeriod"
-
 
42
                                                              id="creditNotePeriod"
-
 
43
                                                              type="text" value="" class="form-control input-sm"></td>
-
 
44
                        <td style="padding: 5px 10px;"><input class="btn btn-primary credit-not-list"
-
 
45
                                                              type="button"
-
 
46
                                                              value="Submit"></td>
-
 
47
                    #else
-
 
48
                        <td style="padding: 5px 10px;"><input placeholder="Set Duration"
-
 
49
                                                              name="analysis-creditNotePeriod"
-
 
50
                                                              id="analysis-creditNotePeriod"
-
 
51
                                                              type="text" value="" class="form-control input-sm"></td>
-
 
52
                        <td style="padding: 5px 10px;"><input class="btn btn-primary analysis-credit-not-list"
-
 
53
                                                              type="button"
-
 
54
                                                              value="Submit" data-fofoid="$fofoId"></td>
-
 
55
                    #end
40
 
56
 
41
                    <td style="padding: 5px 10px;"><input placeholder="Set Duration" name="creditNotePeriod"
-
 
42
                                                          id="creditNotePeriod"
-
 
43
                                                          type="text" value="" class="form-control input-sm"></td>
-
 
44
                    <td style="padding: 5px 10px;"><input class="btn btn-primary credit-not-list"
-
 
45
                                                          type="button"
-
 
46
                                                          value="Submit"></td>
-
 
47
                </tr>
57
                </tr>
48
            </table>
58
            </table>
49
        </div>
59
        </div>
50
 
60
 
51
    </div>
61
    </div>
Line 59... Line 69...
59
    $(document).ready(function () {
69
    $(document).ready(function () {
60
        $('input[name="creditNotePeriod"]').daterangepicker(getYearMonthPicker(), function (start) {
70
        $('input[name="creditNotePeriod"]').daterangepicker(getYearMonthPicker(), function (start) {
61
            $(this).val(start.format('YYYY-MM')); // Ensure only year-month is displayed
71
            $(this).val(start.format('YYYY-MM')); // Ensure only year-month is displayed
62
        });
72
        });
63
    });
73
    });
-
 
74
    $(document).ready(function () {
-
 
75
        $('input[name="analysis-creditNotePeriod"]').daterangepicker(getYearMonthPicker(), function (start) {
-
 
76
            $(this).val(start.format('YYYY-MM')); // Ensure only year-month is displayed
-
 
77
        });
-
 
78
    });
64
</script>
79
</script>
65
 
80
 
66
#if($isAdmin)
81
#if($isAdmin)
67
<script type="text/javascript">
82
<script type="text/javascript">
68
    $(function () {
83
    $(function () {