Subversion Repositories SmartDukaan

Rev

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

<div class="row">
                     <div class="col-lg-5">
                        <table class="table table-striped table-condensed table-bordered" id="debit-notes">
                                <thead>
                                    <tr>
                                                        <th>#springMessage("vuewdebitnotes.id")</th>
                                                        #if($isAdmin)
                                                        <th>Raised by Party</th>
                                                        #end
                                                        <th>#springMessage("vuewdebitnotes.notenumber")</th>
                                                        <th>#springMessage("vuewdebitnotes.invoicenumber")</th>
                                                        <th>Warehouse</th>
                                                        <th>#springMessage("vuewdebitnotes.createdon")</th>
                                                        #if($isAdmin)
                                                        <th>Action</th>
                                                        #end
                                    </tr>
                                </thead>
                                        <tbody>
                                        #foreach( $debitNoteId in $debitNotesMap.keySet())
                                        #if($inventoryItemsMap.get($dnReturnItemsMap.get($debitNoteId).get(0).getInventoryItemId()).getPurchase().getPurchaseReference())
                                <tr data-id="$debitNoteId" >
                                        <td>
                                                <a href="javascript:void(0)" class="debit-note">$debitNoteId</a>
                                        </td>
                                        #if($isAdmin)
                                                <td>$customRetailers.get($debitNotesMap.get($debitNoteId).getFofoId()).getBusinessName()</td>
                                        #end
                                        <td><a href="${rc.contextPath}/return/debit-note/$debitNoteId" target="_blank">$debitNotesMap.get($debitNoteId).getDebitNoteNumber()</td>
                                        #set($pRef = $inventoryItemsMap.get($dnReturnItemsMap.get($debitNoteId).get(0).getInventoryItemId()).getPurchase().getPurchaseReference())
                                        <td><a href="${rc.contextPath}/purchase-invoice/$pRef" target="_blank">$pRef</a></td>
                                        <td>#if($dnWarehouseMap.get($debitNoteId))$dnWarehouseMap.get($debitNoteId).getDisplayName()#else-#end</td>
                                        <td>$debitNotesMap.get($debitNoteId).getFormattedCreateTimestamp()</td>
                                        #if($isAdmin)
                                        <td>
                                                <a href="javascript:void(0)" class="btn btn-xs btn-info receive-debit-note" data-debitnote-id="$debitNoteId">Receive</a>
                                                <a href="javascript:void(0)" class="btn btn-xs btn-danger refund-debit-note" data-debitnote-id="$debitNoteId">Refund</a>
                                        </td>
                                        #end
                                </tr>
                                #end
                                #end
                                </tbody>
                             </table>
                     </div>
                        <div class="col-lg-7" id="debit-note-items">
                                <table class="table table-striped table-condensed table-bordered">
                                <thead>
                                    <tr>
                                                        <th>#springMessage("vuewdebitnotes.itemid")</th>
                                                        <th>#springMessage("vuewdebitnotes.description")</th>
                                                        <th>#springMessage("vuewdebitnotes.serialnumber")</th>
                                    </tr>
                                </thead>
                                        <tbody>
                                                #foreach( $debitNoteId in $dnReturnItemsMap.keySet() )
                                                #foreach( $prItem in $dnReturnItemsMap.get($debitNoteId) )
                                                <tr class="filter" data-id="$debitNoteId" data-inventoryitemid="$inventoryItemId">
                                                        <td>$inventoryItemsMap.get($prItem.getInventoryItemId()).getItemId()</td>
                                                        <td>$inventoryItemsMap.get($prItem.getInventoryItemId()).getItemDescription()</td>
                                                        <td>#if($inventoryItemsMap.get($prItem.getInventoryItemId()).getSerialNumber())
                                                                        $inventoryItemsMap.get($prItem.getInventoryItemId()).getSerialNumber()
                                                                #else
                                                                        -
                                                                #end
                                                        </td>
                                                </tr>
                                                #end
                                                #end
                                        </tbody>
                                </table>
                        </div>