Subversion Repositories SmartDukaan

Rev

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

<div class="modal-body">
    <h4 class="modal-title">Brand fee payment details</h4>
    <table class="table table-bordered" id="mk_brand-fee-collection-details">
        <thead>
        <th>Date</th>
        <th>Amount</th>
        <th>UTR</th>
        <th>Mode</th>
        <th>Attachment</th>
        <th>Status</th>
        <th>Description</th>
        <th>Action</th>
        </thead>
        <tbody>
            #foreach($bfc in $brandFeeCollections)
                #if($bfc.getPaymentStatus()=="PENDING")
                <form name="updatePayment" method="post">
                    <tr>
                        <td hidden="hidden" class="bfcId">$bfc.getId() </td>
                        <td><input type="datetime-local" value="$bfc.getFeeCollectingTimeStamp()"
                                   name="feeCollectingTimeStamp"></td>
                        <td class="currency"><input value="$bfc.getCollectedAmount()" name="collectedAmount"></td>
                        <td><input value="$bfc.getPaymentReferenceNo()" name="paymentReferenceNo"></td>
                        <td><select name="paymentMode" style="width: 100%;">
                            <option value="$bfc.getPaymentMode()" selected>$bfc.getPaymentMode()</option>
                            <option value="UPI">UPI</option>
                            <option value="NEFT">NEFT</option>
                            <option value="RTGS">RTGS</option>
                            <option value="IMPS">IMPS</option>

                        </select></td>
                        <td>
                            <input type="hidden" name="documentId" value="$bfc.getPaymentAttachment()"
                                   class="documentId">
                            <input type="file" required style="width: 100%;">
                            #if($bfc.getPaymentAttachment()>0)
                                <a href="${rc.contextPath}/download-attachment?documentId=$bfc.getPaymentAttachment()">View</a>
                            #end
                        </td>
                        <td>$bfc.getPaymentStatus()</td>
                        #if($bfc.getDescription())
                            <td>$bfc.getDescription()</td>
                        #else
                            <td>--</td>
                        #end

                        <td>
                            #if($isNiraj)
                                #if(!$bfc.getPaymentStatus()=="CONFIRM" || $bfc.getPaymentStatus()=="PENDING")
                                    <button class="btn-info paymentConfirmBtn" data-dismiss="modal"
                                            value="$bfc.getId()"
                                            data-approval="CONFIRM">Confirm
                                    </button>
                                #end
                                #if(!$bfc.getPaymentStatus()=="REJECT" || $bfc.getPaymentStatus()=="PENDING")
                                    <button class="btn-info paymentRejectBtn" data-dismiss="modal"
                                            value="$bfc.getId()"
                                            data-approval="REJECT">Reject
                                    </button>
                                #end
                            #end
                            #if($bfc.getPaymentStatus()=="PENDING")
                                <button type="button" class="btn-info brandFeePaymentEdit" data-dismiss="modal"
                                        value="$bfc.getId()">Save
                                </button>
                            #end
                        </td>
                    </tr>
                </form>
                #else
                <tr>
                    <td hidden="hidden" class="bfcId">$bfc.getId() </td>
                    <td>$bfc.getFeeCollectingTimeStamp()</td>
                    <td class="currency">$bfc.getCollectedAmount()</td>
                    <td>$bfc.getPaymentReferenceNo()</td>
                    <td>$bfc.getPaymentMode()</td>
                    <td>
                        <input type="hidden" name="documentId" value="$bfc.getPaymentAttachment()" class="documentId">
                        <input type="file" required style="width: 100%;">
                        #if($bfc.getPaymentAttachment()>0)
                            <a href="${rc.contextPath}/download-attachment?documentId=$bfc.getPaymentAttachment()">View</a>
                        #end
                    </td>
                    <td>$bfc.getPaymentStatus()</td>
                    #if($bfc.getDescription())
                        <td>$bfc.getDescription()</td>
                    #else
                        <td>--</td>
                    #end
                    <td>
                        #if($isNiraj)
                            #if(!$bfc.getPaymentStatus()=="CONFIRM" || $bfc.getPaymentStatus()=="PENDING")
                                <button class="btn-info paymentConfirmBtn" data-dismiss="modal"
                                        value="$bfc.getId()"
                                        data-approval="CONFIRM">Confirm
                                </button>
                            #end
                            #if(!$bfc.getPaymentStatus()=="REJECT" || $bfc.getPaymentStatus()=="PENDING")
                                <button class="btn-info paymentRejectBtn" data-dismiss="modal"
                                        value="$bfc.getId()"
                                        data-approval="REJECT">Reject
                                </button>
                            #end
                            #if($bfc.getPaymentStatus()=="REJECT" || $bfc.getPaymentStatus()=="CONFIRM")
                                <button class="btn-info deleteFeeCollection" data-dismiss="modal"
                                        value="$bfc.getId()"
                                        data-approval="DELETE">Delete
                                </button>
                        #end
                        #end
                    </td>
                </tr>
                #end

            #end
        </tbody>
    </table>
</div>