| 32192 |
tejbeer |
1 |
|
|
|
2 |
<div class="row">
|
|
|
3 |
|
|
|
4 |
<div class="col-lg-2 form-group">
|
|
|
5 |
<input class="form-control btn btn-primary addRowForInvoiceItem" data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Add Item">
|
|
|
6 |
</div>
|
|
|
7 |
|
|
|
8 |
</div>
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
<div class="row">
|
|
|
12 |
<div class="col-lg-12">
|
|
|
13 |
<table class="table table-border table-condensed table-bordered" id="invoice-order-table" style="width:100%">
|
|
|
14 |
<thead>
|
|
|
15 |
<tr>
|
|
|
16 |
|
|
|
17 |
<th>Product Name</th>
|
|
|
18 |
<th>Qty</th>
|
|
|
19 |
<th>Rate</th>
|
|
|
20 |
<th>Action</th>
|
|
|
21 |
|
|
|
22 |
</tr>
|
|
|
23 |
</thead>
|
|
|
24 |
<tbody>
|
|
|
25 |
#if(!$warehouseInvoiceItems.isEmpty())
|
|
|
26 |
#foreach($warehouseInvoiceItem in $warehouseInvoiceItems)
|
|
|
27 |
<tr>
|
|
|
28 |
<td> $itemMap.get($warehouseInvoiceItem.getItemId()).getItemDescription()</td>
|
|
|
29 |
<td> <input type="number" class="form-control qty" name = "qty" value = "$warehouseInvoiceItem.getQty()" placeholder="Quantity"/> </td>
|
|
|
30 |
<td> <input type="number" class="form-control rate" data-itemid = "$warehouseInvoiceItem.getItemId()" value = "$warehouseInvoiceItem.getRate()" disable placeholder="Rate"/> </td>
|
|
|
31 |
<td> <input class="form-control btn btn-primary removeInInvoiceItem" data-invoiceid = "$warehouseSupplierInvoice.getId()" data-itemid = "$warehouseInvoiceItem.getItemId()" type="button" value="Remove"></td>
|
|
|
32 |
</tr>
|
|
|
33 |
|
|
|
34 |
#end
|
|
|
35 |
#end
|
|
|
36 |
|
|
|
37 |
</tbody>
|
|
|
38 |
</table>
|
|
|
39 |
|
|
|
40 |
</div>
|
|
|
41 |
</div>
|
|
|
42 |
|
|
|
43 |
<div class="row">
|
|
|
44 |
|
|
|
45 |
<div class="col-lg-2 form-group">
|
|
|
46 |
<input class="form-control btn btn-primary saveInvoiceDetail" data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-supplierid = "$warehouseSupplierInvoice.getSupplierId()" data-warehouseid = "$warehouseSupplierInvoice.getWarehouseId()" data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Save">
|
|
|
47 |
</div>
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
<div class="col-lg-2 form-group">
|
|
|
52 |
<input class="form-control btn btn-primary validateInvoiceDetail" data-numitems = "$warehouseSupplierInvoice.getNumItems()" data-supplierid = "$warehouseSupplierInvoice.getSupplierId()" data-warehouseid = "$warehouseSupplierInvoice.getWarehouseId()" data-invoiceid = "$warehouseSupplierInvoice.getId()" type="button" value="Validate">
|
|
|
53 |
</div>
|
|
|
54 |
|
|
|
55 |
</div>
|