Subversion Repositories SmartDukaan

Rev

Rev 34645 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33507 tejus.loha 1
<div class="modal-body">
33578 tejus.loha 2
    <h4 class="modal-title">Brand fee payment details</h4>
33885 tejus.loha 3
    <table class="table table-bordered" id="mk_brand-fee-collection-details">
33507 tejus.loha 4
        <thead>
5
        <th>Date</th>
6
        <th>Amount</th>
33658 tejus.loha 7
        <th>UTR</th>
33507 tejus.loha 8
        <th>Mode</th>
33885 tejus.loha 9
        <th>Attachment</th>
33507 tejus.loha 10
        <th>Status</th>
33525 tejus.loha 11
        <th>Description</th>
33658 tejus.loha 12
        <th>Action</th>
33507 tejus.loha 13
        </thead>
14
        <tbody>
15
            #foreach($bfc in $brandFeeCollections)
33658 tejus.loha 16
                #if($bfc.getPaymentStatus()=="PENDING")
17
                <form name="updatePayment" method="post">
18
                    <tr>
19
                        <td hidden="hidden" class="bfcId">$bfc.getId() </td>
20
                        <td><input type="datetime-local" value="$bfc.getFeeCollectingTimeStamp()"
21
                                   name="feeCollectingTimeStamp"></td>
22
                        <td class="currency"><input value="$bfc.getCollectedAmount()" name="collectedAmount"></td>
23
                        <td><input value="$bfc.getPaymentReferenceNo()" name="paymentReferenceNo"></td>
33885 tejus.loha 24
                        <td><select name="paymentMode" style="width: 100%;">
33658 tejus.loha 25
                            <option value="$bfc.getPaymentMode()" selected>$bfc.getPaymentMode()</option>
26
                            <option value="UPI">UPI</option>
27
                            <option value="NEFT">NEFT</option>
28
                            <option value="RTGS">RTGS</option>
29
                            <option value="IMPS">IMPS</option>
33525 tejus.loha 30
 
33658 tejus.loha 31
                        </select></td>
33885 tejus.loha 32
                        <td>
33
                            <input type="hidden" name="documentId" value="$bfc.getPaymentAttachment()"
34
                                   class="documentId">
35
                            <input type="file" required style="width: 100%;">
36
                            #if($bfc.getPaymentAttachment()>0)
37
                                <a href="${rc.contextPath}/download-attachment?documentId=$bfc.getPaymentAttachment()">View</a>
38
                            #end
39
                        </td>
33658 tejus.loha 40
                        <td>$bfc.getPaymentStatus()</td>
41
                        #if($bfc.getDescription())
42
                            <td>$bfc.getDescription()</td>
43
                        #else
44
                            <td>--</td>
45
                        #end
33525 tejus.loha 46
 
33658 tejus.loha 47
                        <td>
48
                            #if($isNiraj)
49
                                #if(!$bfc.getPaymentStatus()=="CONFIRM" || $bfc.getPaymentStatus()=="PENDING")
50
                                    <button class="btn-info paymentConfirmBtn" data-dismiss="modal"
51
                                            value="$bfc.getId()"
52
                                            data-approval="CONFIRM">Confirm
53
                                    </button>
54
                                #end
55
                                #if(!$bfc.getPaymentStatus()=="REJECT" || $bfc.getPaymentStatus()=="PENDING")
56
                                    <button class="btn-info paymentRejectBtn" data-dismiss="modal"
57
                                            value="$bfc.getId()"
58
                                            data-approval="REJECT">Reject
59
                                    </button>
60
                                #end
61
                            #end
34645 tejus.loha 62
                            #if($bfc.getPaymentStatus()=="PENDING")
63
                                <button type="button" class="btn-info brandFeePaymentEdit" data-dismiss="modal"
64
                                        value="$bfc.getId()">Save
65
                                </button>
66
                            #end
33658 tejus.loha 67
                        </td>
68
                    </tr>
69
                </form>
70
                #else
71
                <tr>
72
                    <td hidden="hidden" class="bfcId">$bfc.getId() </td>
73
                    <td>$bfc.getFeeCollectingTimeStamp()</td>
74
                    <td class="currency">$bfc.getCollectedAmount()</td>
75
                    <td>$bfc.getPaymentReferenceNo()</td>
76
                    <td>$bfc.getPaymentMode()</td>
33885 tejus.loha 77
                    <td>
78
                        <input type="hidden" name="documentId" value="$bfc.getPaymentAttachment()" class="documentId">
79
                        <input type="file" required style="width: 100%;">
80
                        #if($bfc.getPaymentAttachment()>0)
81
                            <a href="${rc.contextPath}/download-attachment?documentId=$bfc.getPaymentAttachment()">View</a>
82
                        #end
83
                    </td>
33658 tejus.loha 84
                    <td>$bfc.getPaymentStatus()</td>
85
                    #if($bfc.getDescription())
86
                        <td>$bfc.getDescription()</td>
87
                    #else
88
                        <td>--</td>
89
                    #end
90
                    <td>
91
                        #if($isNiraj)
92
                            #if(!$bfc.getPaymentStatus()=="CONFIRM" || $bfc.getPaymentStatus()=="PENDING")
93
                                <button class="btn-info paymentConfirmBtn" data-dismiss="modal"
94
                                        value="$bfc.getId()"
95
                                        data-approval="CONFIRM">Confirm
96
                                </button>
97
                            #end
98
                            #if(!$bfc.getPaymentStatus()=="REJECT" || $bfc.getPaymentStatus()=="PENDING")
99
                                <button class="btn-info paymentRejectBtn" data-dismiss="modal"
100
                                        value="$bfc.getId()"
101
                                        data-approval="REJECT">Reject
102
                                </button>
103
                            #end
34739 aman.kumar 104
                            #if($bfc.getPaymentStatus()=="REJECT" || $bfc.getPaymentStatus()=="CONFIRM")
105
                                <button class="btn-info deleteFeeCollection" data-dismiss="modal"
106
                                        value="$bfc.getId()"
107
                                        data-approval="DELETE">Delete
108
                                </button>
33507 tejus.loha 109
                        #end
34739 aman.kumar 110
                        #end
33658 tejus.loha 111
                    </td>
112
                </tr>
113
                #end
33507 tejus.loha 114
 
115
            #end
116
        </tbody>
117
    </table>
118
</div>