| Line 1... |
Line 1... |
| 1 |
## Physical warehouses of one seller. A warehouse is active while its seller registration is; the other columns show
|
1 |
## Physical warehouses of one seller: status and label (sellerwarehouse), and whether the pieces billing and movements
|
| 2 |
## whether the pieces billing and movements need are in place.
|
2 |
## need are in place.
|
| 3 |
<div class="panel panel-info seller-warehouses" data-seller-id="$seller.getId()">
|
3 |
<div class="panel panel-info seller-warehouses" data-seller-id="$seller.getId()">
|
| 4 |
<div class="panel-heading clearfix">
|
4 |
<div class="panel-heading clearfix">
|
| 5 |
<strong>$seller.getLabel()</strong>
|
5 |
<strong>$seller.getLabel()</strong>
|
| 6 |
#if($seller.getGstin())$seller.getGstin()#end
|
6 |
#if($seller.getGstin())$seller.getGstin()#end
|
| 7 |
#if($stateNames.get($seller.getStateId()))<span class="text-muted">$stateNames.get($seller.getStateId())</span>#end
|
7 |
#if($stateNames.get($seller.getStateId()))<span class="text-muted">$stateNames.get($seller.getStateId())</span>#end
|
| Line 11... |
Line 11... |
| 11 |
</div>
|
11 |
</div>
|
| 12 |
<table class="table table-striped table-condensed">
|
12 |
<table class="table table-striped table-condensed">
|
| 13 |
<thead>
|
13 |
<thead>
|
| 14 |
<tr>
|
14 |
<tr>
|
| 15 |
<th>Id</th>
|
15 |
<th>Id</th>
|
| 16 |
<th>Name</th>
|
16 |
<th>Label</th>
|
| 17 |
<th>Branch code</th>
|
17 |
<th>Branch code</th>
|
| 18 |
<th>Address</th>
|
18 |
<th>Address</th>
|
| 19 |
<th>Internal store</th>
|
19 |
<th>Internal store</th>
|
| 20 |
<th>Internal supplier</th>
|
20 |
<th>Internal supplier</th>
|
| 21 |
<th title="Dummy/GOOD warehouse for phantom allocation">Dummy</th>
|
21 |
<th title="Dummy/GOOD warehouse for phantom allocation">Dummy</th>
|
| 22 |
<th title="Last invoice / challan / credit note / debit note number">Inv / DC / CN / DN</th>
|
22 |
<th title="Last invoice / challan / credit note / debit note number">Inv / DC / CN / DN</th>
|
| 23 |
<th>Status</th>
|
23 |
<th style="width: 140px;">Status</th>
|
| 24 |
<th></th>
|
24 |
<th></th>
|
| 25 |
</tr>
|
25 |
</tr>
|
| 26 |
</thead>
|
26 |
</thead>
|
| 27 |
<tbody>
|
27 |
<tbody>
|
| 28 |
#foreach($warehouse in $warehouses)
|
28 |
#foreach($warehouse in $warehouses)
|
| 29 |
<tr #if(!$warehouse.isActive()) class="text-muted" #end>
|
29 |
<tr #if($warehouse.getStatus().name() == "INACTIVE") class="text-muted" #end>
|
| 30 |
<td>$warehouse.getWarehouseId()</td>
|
30 |
<td>$warehouse.getWarehouseId()</td>
|
| - |
|
31 |
<td>
|
| 31 |
<td>#if($warehouse.getName())$warehouse.getName()#end</td>
|
32 |
<strong>#if($warehouse.getDisplayName())$warehouse.getDisplayName()#end</strong>
|
| - |
|
33 |
<button type="button" class="btn btn-link btn-xs warehouse-rename" title="Rename"
|
| - |
|
34 |
data-warehouse-id="$warehouse.getWarehouseId()"
|
| - |
|
35 |
data-display-name="#if($warehouse.getDisplayName())$warehouse.getDisplayName()#end">
|
| - |
|
36 |
<i class="fa fa-pencil"></i></button>
|
| - |
|
37 |
#if($warehouse.getName())<br><small class="text-muted">$warehouse.getName()</small>#end
|
| - |
|
38 |
</td>
|
| 32 |
<td>$warehouse.getPrefix()</td>
|
39 |
<td>$warehouse.getPrefix()</td>
|
| 33 |
<td>
|
40 |
<td>
|
| 34 |
#if($warehouse.getAddress())
|
41 |
#if($warehouse.getAddress())
|
| 35 |
#$warehouse.getAddress().getId() · #if($warehouse.getAddress().getCity())$warehouse.getAddress().getCity()#end
|
42 |
#$warehouse.getAddress().getId() · #if($warehouse.getAddress().getCity())$warehouse.getAddress().getCity()#end
|
| 36 |
· $warehouse.getAddress().getPin()
|
43 |
· $warehouse.getAddress().getPin()
|
| Line 42... |
Line 49... |
| 42 |
<td>#if($warehouse.getInternalStores().isEmpty())<span class="label label-warning">none</span>#{else}#foreach($store in $warehouse.getInternalStores())$store#if($foreach.hasNext), #end#end#end</td>
|
49 |
<td>#if($warehouse.getInternalStores().isEmpty())<span class="label label-warning">none</span>#{else}#foreach($store in $warehouse.getInternalStores())$store#if($foreach.hasNext), #end#end#end</td>
|
| 43 |
<td>#if($warehouse.getInternalSuppliers().isEmpty())<span class="label label-default">none</span>#{else}#foreach($supplier in $warehouse.getInternalSuppliers())$supplier#if($foreach.hasNext)<br>#end#end#end</td>
|
50 |
<td>#if($warehouse.getInternalSuppliers().isEmpty())<span class="label label-default">none</span>#{else}#foreach($supplier in $warehouse.getInternalSuppliers())$supplier#if($foreach.hasNext)<br>#end#end#end</td>
|
| 44 |
<td>#if($warehouse.isHasDummy())<span class="text-success">✓</span>#{else}<span class="label label-warning">missing</span>#end</td>
|
51 |
<td>#if($warehouse.isHasDummy())<span class="text-success">✓</span>#{else}<span class="label label-warning">missing</span>#end</td>
|
| 45 |
<td>$warehouse.getInvoiceSequence() / $warehouse.getChallanSequence() / $warehouse.getCreditNoteSequence() / $warehouse.getDebitNoteSequence()</td>
|
52 |
<td>$warehouse.getInvoiceSequence() / $warehouse.getChallanSequence() / $warehouse.getCreditNoteSequence() / $warehouse.getDebitNoteSequence()</td>
|
| 46 |
<td>
|
53 |
<td>
|
| - |
|
54 |
<select class="form-control input-sm warehouse-status" data-warehouse-id="$warehouse.getWarehouseId()"
|
| 47 |
<button type="button"
|
55 |
data-current="$warehouse.getStatus()">
|
| 48 |
class="btn btn-xs warehouse-active-toggle #if($warehouse.isActive()) btn-success #else btn-default #end"
|
56 |
#foreach($status in $statuses)
|
| 49 |
data-warehouse-id="$warehouse.getWarehouseId()" data-active="$warehouse.isActive()">
|
57 |
<option value="$status" #if($status == $warehouse.getStatus()) selected #end>$status</option>
|
| 50 |
#if($warehouse.isActive())Active#else Inactive#end
|
58 |
#end
|
| 51 |
</button>
|
59 |
</select>
|
| 52 |
</td>
|
60 |
</td>
|
| 53 |
<td>
|
61 |
<td>
|
| 54 |
<button type="button" class="btn btn-default btn-xs warehouse-remap-open"
|
62 |
<button type="button" class="btn btn-default btn-xs warehouse-remap-open"
|
| 55 |
data-warehouse-id="$warehouse.getWarehouseId()"
|
63 |
data-warehouse-id="$warehouse.getWarehouseId()"
|
| 56 |
data-address-id="#if($warehouse.getAddress())$warehouse.getAddress().getId()#end">
|
64 |
data-address-id="#if($warehouse.getAddress())$warehouse.getAddress().getId()#end">
|
| Line 78... |
Line 86... |
| 78 |
</div>
|
86 |
</div>
|
| 79 |
<div class="modal-body">
|
87 |
<div class="modal-body">
|
| 80 |
<form id="new-warehouse-form" autocomplete="off">
|
88 |
<form id="new-warehouse-form" autocomplete="off">
|
| 81 |
<div class="form-group">
|
89 |
<div class="form-group">
|
| 82 |
<label for="new-warehouse-name">Warehouse name</label>
|
90 |
<label for="new-warehouse-name">Warehouse name</label>
|
| 83 |
<input type="text" class="form-control" id="new-warehouse-name" maxlength="128"
|
91 |
<input type="text" class="form-control" id="new-warehouse-name" maxlength="64"
|
| 84 |
placeholder="e.g. HR-NSSPL/DL">
|
92 |
placeholder="e.g. HR-NSSPL/DL">
|
| - |
|
93 |
<p class="help-block">Also its label on dashboards and dropdowns; it can be renamed later. New
|
| - |
|
94 |
warehouses start active.</p>
|
| 85 |
</div>
|
95 |
</div>
|
| 86 |
<div class="form-group">
|
96 |
<div class="form-group">
|
| 87 |
<label for="new-warehouse-prefix">Branch code</label>
|
97 |
<label for="new-warehouse-prefix">Branch code</label>
|
| 88 |
<input type="text" class="form-control text-uppercase" id="new-warehouse-prefix" maxlength="7"
|
98 |
<input type="text" class="form-control text-uppercase" id="new-warehouse-prefix" maxlength="7"
|
| 89 |
placeholder="2 to 7 letters, e.g. NSHRDL">
|
99 |
placeholder="2 to 7 letters, e.g. NSHRDL">
|