Subversion Repositories SmartDukaan

Rev

Rev 36408 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
35998 amit 1
<section class="wrapper">
2
	<div class="row">
3
		<div class="col-lg-12">
4
			<h3 class="page-header"><i class="icon_document_alt"></i>RECEIVE DEBIT NOTE</h3>
5
			<ol class="breadcrumb">
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
				<li><i class="icon_document_alt"></i>RECEIVE DEBIT NOTE - $debitNote.getDebitNoteNumber()</li>
8
			</ol>
9
		</div>
10
	</div>
11
 
12
	<div>
36408 amit 13
		#if($requiresFinanceApproval && !$existingReturnOrder && $canReceive)
14
		<div class="alert alert-info">
15
			This receipt will be submitted for Finance approval before warehouse scans and refund are applied.
16
		</div>
17
		#end
35998 amit 18
		#if($existingReturnOrder)
19
		<div class="alert alert-info">
20
			Already received on $existingReturnOrder.getFormattedReceiveTimestamp() by $existingReturnOrder.getReceivedBy()
21
			#if($existingReturnOrder.getRefundTimestamp())
22
			<br/>Refunded: $existingReturnOrder.getFormattedRefundTimestamp()
23
			#end
24
		</div>
25
		#elseif($canReceive)
26
		<form id="receive-debit-note-form" data-debitnote-id="$debitNote.getId()">
27
			<input type="hidden" name="warehouseId" value="$warehouseId" />
28
			<table class="table table-striped table-condensed table-bordered">
29
				<thead>
30
					<tr>
31
						<th>Item</th>
32
						<th>Description</th>
33
						<th>Serial Number</th>
37365 amit 34
						<th>Declared By Partner</th>
35998 amit 35
						<th>Condition</th>
36
						<th>Remark</th>
37
					</tr>
38
				</thead>
39
				<tbody>
40
					#foreach($returnItem in $returnItems)
41
					#set($invItem = $inventoryItemsMap.get($returnItem.getInventoryItemId()))
42
					#set($itemDetail = $itemDetailsMap.get($invItem.getItemId()))
37365 amit 43
					#set($declared = "$!returnItem.getReturnType()")
44
					#if($declared == "")#set($declared = "GOOD")#end
35998 amit 45
					<tr data-item-id="$returnItem.getId()" data-category-id="$itemDetail.getCategoryId()">
46
						<td>$invItem.getItemId()</td>
47
						<td>$invItem.getItemDescription()</td>
48
						<td>
49
							#if($invItem.getSerialNumber())
50
								$invItem.getSerialNumber()
51
							#else
52
								-
53
							#end
54
						</td>
37365 amit 55
						<td><strong class="declared-condition">$declared</strong></td>
35998 amit 56
						<td>
37365 amit 57
							<select name="returnType_$returnItem.getId()" class="form-control input-sm return-condition"
58
								data-declared="$declared">
59
								<option value="GOOD" #if($declared == "GOOD")selected#end>GOOD</option>
60
								<option value="BAD" #if($declared == "BAD")selected#end>BAD</option>
35998 amit 61
							</select>
62
						</td>
63
						<td>
64
							<input type="text" name="remark_$returnItem.getId()" class="form-control input-sm remark-field"
65
								placeholder="Remark (required for BAD/DOA)" />
66
						</td>
67
					</tr>
68
					#end
69
				</tbody>
70
			</table>
71
 
37365 amit 72
			<div id="condition-mismatch-section" style="display:none;">
73
				<div class="alert alert-danger">
74
					<strong>Condition changed &mdash; this will REJECT the debit note.</strong>
75
					<br/>
76
					Changing the condition means you do not agree with what the partner reported. The whole
77
					debit note will be rejected and sent back, no refund will be raised, and the partner,
78
					Logistics, RBM and Sales will be notified. A remark is mandatory on every changed row.
79
				</div>
80
			</div>
81
 
35998 amit 82
			<div id="doa-certificate-section" style="display:none;">
83
				<div class="alert alert-warning">
84
					<strong>DOA Items Detected (Mobile Category)</strong>
85
					<br/>
86
					<label>
87
						<input type="radio" name="doaCertificateValid" value="true" /> DOA Certificate Valid
88
					</label>
89
					<label style="margin-left:15px;">
90
						<input type="radio" name="doaCertificateValid" value="false" /> DOA Certificate Invalid
91
					</label>
92
				</div>
93
			</div>
94
 
95
			<button type="submit" class="btn btn-primary" id="submit-receive">Confirm Receipt</button>
96
		</form>
97
		#else
98
		<div class="alert alert-warning">
99
			<strong>View Only.</strong> Only Warehouse/Logistics team can receive items.
100
		</div>
101
		#end
102
	</div>
103
 
104
</section>