Rev 37365 | 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($debitNote.getStatus().name() != "CREATED")<div class="alert alert-success">Already processed - this debit note was settled before the receive workflow ($debitNote.getStatus()). Nothing to receive.</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>Declared By Partner</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()))#set($declared = "$!returnItem.getReturnType()")#if($declared == "")#set($declared = "GOOD")#end<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><strong class="declared-condition">$declared</strong></td><td><select name="returnType_$returnItem.getId()" class="form-control input-sm return-condition"data-declared="$declared"><option value="GOOD" #if($declared == "GOOD")selected#end>GOOD</option><option value="BAD" #if($declared == "BAD")selected#end>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="condition-mismatch-section" style="display:none;"><div class="alert alert-danger"><strong>Condition changed — this will REJECT the debit note.</strong><br/>Changing the condition means you do not agree with what the partner reported. The wholedebit note will be rejected and sent back, no refund will be raised, and the partner,Logistics, RBM and Sales will be notified. A remark is mandatory on every changed row.</div></div><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>