Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32192 tejbeer 1
 
2
<script  type="text/javascript">
3
 
4
 
5
   $(function () {
6
	getVendorAheadOptions($("#typeaheadVendor"), function (selectedVendor) {
7
		$('#vendorId').val(selectedVendor.id + "");
8
 
9
	});
10
 
11
 
12
 
13
	});
14
 
15
 
16
   $(document).ready(function () {
17
 
18
      var dtable = $('#open-invoices').DataTable({
19
 
20
 
21
       });
22
 
23
    }); 
24
 
25
 
26
</script>
27
 
28
<section class="wrapper">            
29
	<div class="row">
30
		<div class="col-lg-12">
31
			<h3 class="page-header"><i class="icon_document_alt"></i>Receive New Invoice</h3>
32
			<ol class="breadcrumb">
33
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
34
				<li><i class="icon_document_alt"></i>Receive New Invoice</li>
35
			</ol>
36
		</div>
37
	</div>
38
	  <div  class="row">
39
 
40
 
41
		<div id="filter-details" style="background:white;background-color:white;padding:10px;">
42
				<div class = "row">
43
 
44
					<div class="col-lg-2 form-group">
32261 tejbeer 45
					    <label>Actual Invoice Date</label>	
46
				       <input type="date" class="form-control" id="actualDate" autocomplete="off"  placeholder="Actual Date"/>
32192 tejbeer 47
					</div>	
48
 
49
					<div class="col-lg-2 form-group">
50
					    <label>Vendor</label>	
51
 
52
				      <input placeholder="Enter Vendor Name" type="text" class="typeahead form-control"
53
                                 id="typeaheadVendor" name="Item" data-provide="typeahead" value="" autocomplete="off">
54
                                  <input id="vendorId" type="hidden" /> 
55
  	               </div>
56
 
57
 
58
				    <div class="col-lg-1 form-group">
59
				        <label>Invoice Number</label>	
60
 
61
				       <input type="text" class="form-control" id="invoiceNumber" autocomplete="off" placeholder="Invoice Number"/>
62
					</div>	
63
 
64
					<div class="col-lg-1 form-group">
65
					    <label>Warehouse</label>	
66
 
67
				     	<select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
68
							<option value="" disabled selected>Warehouse</option>
69
								#foreach($wm in $warehouseMap.entrySet()))
70
				             		<option value="$wm.getKey()">$wm.getValue()</option>
71
				             	  #end   	
72
				          </select>
73
 
74
					</div>	
75
 
76
					<div class="col-lg-1 form-group">
77
					    <label>Number of items</label>	
78
				       <input type="number" class="form-control" id="numberofItems" autocomplete="off"  placeholder="Number of Items"/>
79
					</div>	
80
 
81
					</div>
82
 
83
					<div class = "row">
84
 
85
 
86
 
87
					<div class="col-lg-1 form-group">
88
					    <label>Total Value</label>	
89
				       <input type="number" class="form-control" id="totalValue" autocomplete="off"  placeholder="Total Value"/>
90
					</div>	
91
 
92
 
93
				    <div class="col-lg-2 form-group">
94
					    <label>Received By</label>	
95
 
96
				     	<select class="form-control input-sm" id = "authUser" name="authUser" placeholder="Auth User">
97
							<option value="" disabled selected>Received By</option>
98
								#foreach($authUser in $authUsers))
99
				             		<option value="$authUser.getFullName()">$authUser.getFullName()</option>
100
				             	  #end   	
101
				          </select>
102
 
103
				  </div>	
104
				     <div class="col-lg-2 form-group">
105
				   <label>Invoice</label>	
106
 
107
				    <input type="hidden" id"invoicehidden" value="">
108
                            <input type="file" id="invoice" placeholder="invoice"  name="invoice"
109
                                   value="">
110
 
111
                    </div>
112
 
113
				    <div class="col-lg-2 form-group">
114
				        <label>Action</label>	
115
 
116
						<input class="form-control btn btn-primary createReceiveInvoice" type="button" value="Receive">	
117
					</div>
118
 
119
 
120
 
121
			 </div>
122
	    </div>
123
	   </div>
124
 
125
 
126
 <div class="row">
127
 
128
<div class="col-lg-12">
129
            <table id="open-invoices" class="table table-striped table-advance table-hover" >
130
              <thead>
131
                <tr>
132
                 <th> Date</th>
133
                 <th> Supplier</th>
134
                 <th>Warehouse</th>
135
                 <th> Invoice Number</th>  
136
                 <th> Num Items</th>  
137
                 <th> Invoice Date</th>  
138
                 <th> Received By</th>
32256 tejbeer 139
 
32192 tejbeer 140
                 <th> Status </th>
32256 tejbeer 141
                 <th> Invoice </th>
32192 tejbeer 142
 
143
                </tr>
144
              </thead> 
145
 
146
              <tbody> 
147
 
148
 
149
               #foreach($supplierInvoice in $supplierInvoices)
150
                <tr>
151
                <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
152
                <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
153
                <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
154
                <td> <a  onclick="getInvoiceItems($supplierInvoice.getId())">$supplierInvoice.getInvoiceNumber() </a> </td>
155
                <td>$supplierInvoice.getNumItems()</td>     
156
                <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>     
157
                <td>$supplierInvoice.getReceivedFrom()</td> 
32256 tejbeer 158
                #if($grnRequestMap.get($supplierInvoice.getId()))
159
                <td>$grnRequestMap.get($supplierInvoice.getId()).getStatus() </td>  
160
                #else
161
                 <td> - </td>
162
                #end 
32192 tejbeer 163
                <td>          <a href="${rc.contextPath}/download-attachment?documentId=$supplierInvoice.getInvoiceDocId()" class="download">Download Doc</a>
164
                      </td> 
165
 
166
               </tr>
167
               #end
168
 
169
             </tbody>
170
           </table>
171
  </div>
172
  </div>
173
 <div class="row">
174
 
175
   <div class="col-lg-12">
176
    <div class="invoiceadditemcontainer">
177
 
178
  </div>
179
  </div>
180
 
181
  </div>   
182
 
183
 
184
 
185
</section>