Subversion Repositories SmartDukaan

Rev

Rev 37823 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37823 Rev 37846
Line 7... Line 7...
7
                <li><i class="icon_document_alt"></i> Sellers &amp; Warehouses</li>
7
                <li><i class="icon_document_alt"></i> Sellers &amp; Warehouses</li>
8
            </ol>
8
            </ol>
9
        </div>
9
        </div>
10
    </div>
10
    </div>
11
 
11
 
-
 
12
    ## Warehouses: every physical warehouse across sellers, with its status and what still ties it to operations
-
 
13
    <div class="panel panel-default warehouse-overview">
-
 
14
        <div class="panel-heading clearfix">
-
 
15
            <strong>Warehouses</strong>
-
 
16
            <div class="btn-group btn-group-xs warehouse-status-filter" style="margin-left: 12px;">
-
 
17
                <button type="button" class="btn btn-default active" data-status="">All ($warehouses.size())</button>
-
 
18
                #foreach($status in $statuses)
-
 
19
                    <button type="button" class="btn btn-default" data-status="$status">$status.name().substring(0,1)$status.name().substring(1).toLowerCase() ($statusCounts.get($status))</button>
-
 
20
                #end
-
 
21
            </div>
-
 
22
            <button type="button" class="btn btn-default btn-sm pull-right warehouse-stock-alert"
-
 
23
                    title="Mails logistics, finance and leadership the stock still lying in suspended or inactive warehouses">
-
 
24
                Mail stock alert now
-
 
25
            </button>
-
 
26
        </div>
-
 
27
        <div class="panel-body small text-muted" style="padding: 6px 15px;">
-
 
28
            <span class="label label-success">ACTIVE</span> dashboards, warehouse screens and new orders &nbsp;&middot;&nbsp;
-
 
29
            <span class="label label-warning">SUSPENDED</span> off dashboards and new orders, still in warehouse screens to clear stock and returns &nbsp;&middot;&nbsp;
-
 
30
            <span class="label label-default">INACTIVE</span> closed for good; only its name shows on old records
-
 
31
        </div>
-
 
32
        <table class="table table-condensed table-hover">
-
 
33
            <thead>
-
 
34
            <tr>
-
 
35
                <th>Id</th>
-
 
36
                <th>Label</th>
-
 
37
                <th>Seller</th>
-
 
38
                <th>Branch code</th>
-
 
39
                <th style="width: 140px;">Status</th>
-
 
40
                <th class="text-right">Stock</th>
-
 
41
                <th class="text-right" title="Billing from it, not yet shipped">Unshipped orders</th>
-
 
42
                <th class="text-right" title="Active franchise stores ordering into it">Franchise stores</th>
-
 
43
                <th class="text-right" title="Brand region mapping rows routing through it">Brand mapping</th>
-
 
44
            </tr>
-
 
45
            </thead>
-
 
46
            <tbody>
-
 
47
                #foreach($warehouse in $warehouses)
-
 
48
                    #set($usage = $warehouse.getUsage())
-
 
49
                    #set($isActive = $warehouse.getStatus().name() == "ACTIVE")
-
 
50
                <tr data-status="$warehouse.getStatus()" #if($warehouse.getStatus().name() == "INACTIVE") class="text-muted" #end>
-
 
51
                    <td>$warehouse.getWarehouseId()</td>
-
 
52
                    <td>
-
 
53
                        <strong>#if($warehouse.getDisplayName())$warehouse.getDisplayName()#end</strong>
-
 
54
                        <button type="button" class="btn btn-link btn-xs warehouse-rename" title="Rename"
-
 
55
                                data-warehouse-id="$warehouse.getWarehouseId()"
-
 
56
                                data-display-name="#if($warehouse.getDisplayName())$warehouse.getDisplayName()#end">
-
 
57
                            <i class="fa fa-pencil"></i></button>
-
 
58
                        #if($warehouse.getName())<br><small class="text-muted">$warehouse.getName()</small>#end
-
 
59
                    </td>
-
 
60
                    <td>
-
 
61
                        <a href="javascript:void(0)" class="seller-open" data-seller-id="$warehouse.getSellerId()">#if($warehouse.getSellerLabel())$warehouse.getSellerLabel()#{else}$warehouse.getSellerId()#end</a>
-
 
62
                    </td>
-
 
63
                    <td>$warehouse.getPrefix()</td>
-
 
64
                    <td>
-
 
65
                        <select class="form-control input-sm warehouse-status" data-warehouse-id="$warehouse.getWarehouseId()"
-
 
66
                                data-current="$warehouse.getStatus()">
-
 
67
                            #foreach($status in $statuses)
-
 
68
                                <option value="$status" #if($status == $warehouse.getStatus()) selected #end>$status</option>
-
 
69
                            #end
-
 
70
                        </select>
-
 
71
                    </td>
-
 
72
                    <td class="text-right">
-
 
73
                        #if($usage.getStockUnits() > 0)
-
 
74
                            $usage.getStockUnits() units<br>
-
 
75
                            <small>Rs. <span class="inr">$usage.getStockValue()</span>#if($usage.getUncostedUnits() > 0) &middot; $usage.getUncostedUnits() without cost#end</small>
-
 
76
                            #if(!$isActive)<br><span class="label label-warning">needs clearing</span>#end
-
 
77
                        #else
-
 
78
                            <span class="text-muted">-</span>
-
 
79
                        #end
-
 
80
                    </td>
-
 
81
                    <td class="text-right">#if($usage.getOpenOrders() > 0)$usage.getOpenOrders()#{else}<span class="text-muted">-</span>#end</td>
-
 
82
                    <td class="text-right">
-
 
83
                        #if($usage.getFranchiseStores() > 0)
-
 
84
                            #if($isActive)$usage.getFranchiseStores()#{else}<span class="label label-danger">$usage.getFranchiseStores()</span>#end
-
 
85
                        #else<span class="text-muted">-</span>#end
-
 
86
                    </td>
-
 
87
                    <td class="text-right">
-
 
88
                        #if($usage.getBrandMappingRows() > 0)
-
 
89
                            #if($isActive)$usage.getBrandMappingRows()#{else}<span class="label label-danger">$usage.getBrandMappingRows()</span>#end
-
 
90
                        #else<span class="text-muted">-</span>#end
-
 
91
                    </td>
-
 
92
                </tr>
-
 
93
                #end
-
 
94
            </tbody>
-
 
95
        </table>
-
 
96
    </div>
-
 
97
 
12
    ## Sellers: one row per GST registration
98
    ## Sellers: one row per GST registration
13
    <div class="panel panel-default">
99
    <div class="panel panel-default">
14
        <div class="panel-heading clearfix">
100
        <div class="panel-heading clearfix">
15
            <strong>Sellers</strong>
101
            <strong>Sellers</strong>
16
            <button type="button" class="btn btn-primary btn-sm pull-right" data-toggle="modal"
102
            <button type="button" class="btn btn-primary btn-sm pull-right" data-toggle="modal"