Subversion Repositories SmartDukaan

Rev

Rev 33213 | Rev 35995 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>Pending Approval</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_document_alt"></i>Approval</li>
            </ol>
        </div>
    </div>
    <div class="col-lg-12">
        #foreach( $transactionApprovalModel in $approvalModelList)
            <div>
                <table class="table table-border table-condensed table-bordered " id="transactionApproval"
                       style="width:100%">
                    <thead class="row htable" style="background:#F5F5F5;">

                    <tr style="color:black;">
                        <th>Transaction Details</th>
                        <th style="text-align: center">Order Details</th>
                        <th style="width: 20%; text-align: center">Remarks</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td class="approvalTransactionId">
                            <b>Transaction Id :-</b><br><span
                                class="mk-transactionId">$transactionApprovalModel.getTransactionId()</span>
                            <br><br>
                            <b>Created By :- </b><br>$transactionApprovalModel.getCreatedBy()<br><br>
                            <b> Created On
                                :- </b><br>$transactionApprovalModel.getCreatedOn().format($dateTimeFormatter)
                            <br><br>
                            <b> Retailer Name :- </b><br>$transactionApprovalModel.getRetailerName()</td>
                        <td>
                            <table class="table table-bordered table-advance">
                                <thead style="background:#F5F5F5;">
                                <tr>
                                    <th>Item Id</th>
                                    <th> Item Name</th>
                                    <th> Quantity</th>
                                    <th> DP</th>
                                    <th>Total Dp</th>
                                    <th> Selling Price</th>
                                    <th>Total Selling Price</th>
                                    <th>Diffrence</th>
                                </tr>
                                </thead>
                                <tbody>
                                    #foreach($orderDetail in $transactionApprovalModel.getLineItemModels())
                                    <tr>
                                        <td>$orderDetail.getItemId()</td>
                                        <td>$orderDetail.getItemName()</td>
                                        <td>$orderDetail.getItemQuantity()</td>
                                        <td>$orderDetail.getDp()</td>
                                        <td>$orderDetail.getFormattedTotalDp()</td>
                                        <td>$orderDetail.getSellingPrice()</td>
                                        <td>$orderDetail.getFormattedTotalSellingPrice()</td>
                                        <td>$orderDetail.getFormattedDifference()</td>
                                    </tr>
                                    #end
                                </tbody>
                            </table>
                        </td>
                        <td style="vertical-align: middle;">
                            <textarea placeholder="Add Remark" rows="3" class="remark-box form-control"></textarea>
                            <div class="clearfix"></div>
                            <br>
                            <button class="transactionApprovalApproved btn btn-success"
                                    data-approval="APPROVED">Approve
                            </button>
                            <button class="transactionApprovalRejected btn btn-danger"
                                    data-approval="REJECTED">Reject
                            </button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        #end
    </div>
</section>
<style>
    b {
        color: #688a7e;

    }
</style>