Subversion Repositories SmartDukaan

Rev

Rev 35998 | 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>RECEIVE DEBIT NOTE</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>RECEIVE DEBIT NOTE - $debitNote.getDebitNoteNumber()</li>
                        </ol>
                </div>
        </div>

        <div>
                #if($requiresFinanceApproval && !$existingReturnOrder && $canReceive)
                <div class="alert alert-info">
                        This receipt will be submitted for Finance approval before warehouse scans and refund are applied.
                </div>
                #end
                #if($existingReturnOrder)
                <div class="alert alert-info">
                        Already received on $existingReturnOrder.getFormattedReceiveTimestamp() by $existingReturnOrder.getReceivedBy()
                        #if($existingReturnOrder.getRefundTimestamp())
                        <br/>Refunded: $existingReturnOrder.getFormattedRefundTimestamp()
                        #end
                </div>
                #elseif($canReceive)
                <form id="receive-debit-note-form" data-debitnote-id="$debitNote.getId()">
                        <input type="hidden" name="warehouseId" value="$warehouseId" />
                        <table class="table table-striped table-condensed table-bordered">
                                <thead>
                                        <tr>
                                                <th>Item</th>
                                                <th>Description</th>
                                                <th>Serial Number</th>
                                                <th>Condition</th>
                                                <th>Remark</th>
                                        </tr>
                                </thead>
                                <tbody>
                                        #foreach($returnItem in $returnItems)
                                        #set($invItem = $inventoryItemsMap.get($returnItem.getInventoryItemId()))
                                        #set($itemDetail = $itemDetailsMap.get($invItem.getItemId()))
                                        <tr data-item-id="$returnItem.getId()" data-category-id="$itemDetail.getCategoryId()">
                                                <td>$invItem.getItemId()</td>
                                                <td>$invItem.getItemDescription()</td>
                                                <td>
                                                        #if($invItem.getSerialNumber())
                                                                $invItem.getSerialNumber()
                                                        #else
                                                                -
                                                        #end
                                                </td>
                                                <td>
                                                        <select name="returnType_$returnItem.getId()" class="form-control input-sm return-condition">
                                                                <option value="GOOD">GOOD</option>
                                                                <option value="BAD">BAD</option>
                                                        </select>
                                                </td>
                                                <td>
                                                        <input type="text" name="remark_$returnItem.getId()" class="form-control input-sm remark-field"
                                                                placeholder="Remark (required for BAD/DOA)" />
                                                </td>
                                        </tr>
                                        #end
                                </tbody>
                        </table>

                        <div id="doa-certificate-section" style="display:none;">
                                <div class="alert alert-warning">
                                        <strong>DOA Items Detected (Mobile Category)</strong>
                                        <br/>
                                        <label>
                                                <input type="radio" name="doaCertificateValid" value="true" /> DOA Certificate Valid
                                        </label>
                                        <label style="margin-left:15px;">
                                                <input type="radio" name="doaCertificateValid" value="false" /> DOA Certificate Invalid
                                        </label>
                                </div>
                        </div>

                        <button type="submit" class="btn btn-primary" id="submit-receive">Confirm Receipt</button>
                </form>
                #else
                <div class="alert alert-warning">
                        <strong>View Only.</strong> Only Warehouse/Logistics team can receive items.
                </div>
                #end
        </div>

</section>