Subversion Repositories SmartDukaan

Rev

Rev 32256 | Go to most recent revision | Details | 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">
45
					    <label>Actual Invoice Detail</label>	
46
				       <input type="datetime-local" class="form-control" id="actualDate" autocomplete="off"  placeholder="Actual Date"/>
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>
139
                 <th> Status </th>
140
                  <th> Invoice </th>
141
 
142
                </tr>
143
              </thead> 
144
 
145
              <tbody> 
146
 
147
 
148
               #foreach($supplierInvoice in $supplierInvoices)
149
                <tr>
150
                <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
151
                <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
152
                <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
153
                <td> <a  onclick="getInvoiceItems($supplierInvoice.getId())">$supplierInvoice.getInvoiceNumber() </a> </td>
154
                <td>$supplierInvoice.getNumItems()</td>     
155
                <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>     
156
                <td>$supplierInvoice.getReceivedFrom()</td> 
157
                <td>$supplierInvoice.getStatus() </td>   
158
                <td>          <a href="${rc.contextPath}/download-attachment?documentId=$supplierInvoice.getInvoiceDocId()" class="download">Download Doc</a>
159
                      </td> 
160
 
161
               </tr>
162
               #end
163
 
164
             </tbody>
165
           </table>
166
  </div>
167
  </div>
168
 <div class="row">
169
 
170
   <div class="col-lg-12">
171
    <div class="invoiceadditemcontainer">
172
 
173
  </div>
174
  </div>
175
 
176
  </div>   
177
 
178
 
179
 
180
</section>