Subversion Repositories SmartDukaan

Rev

Rev 33294 | Rev 33327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33294 Rev 33296
Line 20... Line 20...
20
 
20
 
21
    #transactionList_length, #transactionList_filter {
21
    #transactionList_length, #transactionList_filter {
22
        padding: 8px !important;
22
        padding: 8px !important;
23
    }
23
    }
24
 
24
 
-
 
25
 
-
 
26
    .nav > li > a {
-
 
27
        padding: 4px 8px !important;
-
 
28
    }
-
 
29
 
25
</style>
30
</style>
26
<section class="wrapper" style="font-size: 12px;">
31
<section class="wrapper" style="font-size: 12px;">
27
    <div class="row">
32
    <div class="row">
28
        <div class="col-lg-12">
33
        <div class="col-lg-12">
29
 
34
 
Line 38... Line 43...
38
 
43
 
39
    <div class="col-lg-4">
44
    <div class="col-lg-4">
40
        <div class="row">
45
        <div class="row">
41
            <div class="well" style="padding: 10px; max-height: 800px;overflow-y: auto;">
46
            <div class="well" style="padding: 10px; max-height: 800px;overflow-y: auto;">
42
                <div class="row">
47
                <div class="row">
43
                    <div class="col-md-6"><p><b>Transaction List</b></p></div>
-
 
44
                    <div class="col-md-6">
48
                    <div class="col-md-6">
45
                        <div id="authWarehousesList">
49
                        <ul class="nav nav-pills">
-
 
50
                            <li class="active"><a data-toggle="pill" href="#readyToBill">Ready to Bill</a></li>
-
 
51
                            <li><a data-toggle="pill" href="#ooStock">Out of stock</a></li>
-
 
52
                        </ul>
46
 
53
 
-
 
54
                    </div>
-
 
55
                    <div class="col-md-6">
-
 
56
                        <div id="authWarehousesList">
47
                        </div>
57
                        </div>
48
 
-
 
49
                    </div>
58
                    </div>
50
                </div>
59
                </div>
51
                <div style="max-height: 650px;overflow-y: auto;">
60
                <div style="max-height: 600px;overflow-y: auto;">
-
 
61
                    <div class="tab-content">
-
 
62
                        <div id="readyToBill" class="tab-pane fade in active">
52
                    <table class="table table-bordered" id="transactionList">
63
                            <table class="table table-bordered" id="transactionList">
53
                        <thead>
64
                                <thead>
54
                        <tr>
65
                                <tr>
55
                            <th>Txn Id</th>
66
                                    <th>Txn Id</th>
56
                            <th>Retailer Name</th>
67
                                    <th>Retailer Name</th>
57
                            <th>Created</th>
68
                                    <th>Created</th>
58
                        </tr>
69
                                </tr>
59
                        </thead>
70
                                </thead>
60
                        <tbody>
71
                                <tbody>
61
                            #foreach($transaction in $transactionIdByOrder)
72
                                    #foreach($transaction in $availableTransactionIds)
62
                                #set($hasOutOfStock = false)
73
                                        #set($hasOutOfStock = false)
63
                                #set($hasInStock = false)
74
                                        #set($hasInStock = false)
64
                                #foreach($order in $orderTransactionMap.get($transaction.getTransactionId()))
75
                                        #foreach($order in $orderTransactionMap.get($transaction.getTransactionId()))
65
                                    #if($oosItemIds.contains($order.getLineItem().getItemId()))
76
                                            #if($oosItemIds.contains($order.getLineItem().getItemId()))
66
 
77
 
67
                                        #set($hasOutOfStock = true)
78
                                                #set($hasOutOfStock = true)
68
                                    #else
79
                                            #else
69
                                        #set($hasInStock = true)
80
                                                #set($hasInStock = true)
70
                                    #end
81
                                            #end
71
                                #end
82
                                        #end
72
                                #if($hasOutOfStock && $hasInStock)
83
                                        #if($hasOutOfStock && $hasInStock)
73
                                <tr class="order_by_transaction orangeBg"
84
                                        <tr class="order_by_transaction orangeBg"
74
                                    data-transaction="$transaction.getTransactionId()">
-
 
75
 
-
 
76
                                #elseif($hasOutOfStock)
-
 
77
                                <tr class="order_by_transaction redBg"
-
 
78
                                    data-transaction="$transaction.getTransactionId()">
85
                                            data-transaction="$transaction.getTransactionId()">
79
 
86
 
80
                                #elseif($hasInStock)
87
                                        #elseif($hasInStock)
81
                                <tr class="order_by_transaction greenBg"
88
                                        <tr class="order_by_transaction greenBg"
82
                                    data-transaction="$transaction.getTransactionId()">
89
                                            data-transaction="$transaction.getTransactionId()">
83
                                #end
90
                                        #end
84
                                <td>$transaction.getTransactionId()</td>
91
                                        <td>$transaction.getTransactionId()</td>
85
                                <td>
92
                                        <td>
86
                                    <span>
93
                                    <span>
87
                                        #if($transaction.getRetailerName())
94
                                        #if($transaction.getRetailerName())
88
                                            $transaction.getRetailerName()
95
                                            $transaction.getRetailerName()
89
                                        #end
96
                                        #end
90
                                        #if($transaction.getRetailerCity() && $transaction.getRetailerState())
97
                                        #if($transaction.getRetailerCity() && $transaction.getRetailerState())
91
                                            ($transaction.getRetailerCity(), $transaction.getRetailerState())
98
                                            ($transaction.getRetailerCity(), $transaction.getRetailerState())
92
                                        #end
99
                                        #end
93
                                    </span>
100
                                    </span>
-
 
101
                                        </td>
-
 
102
                                        <td>$transaction.getCreateTimestamp().format($dateFormatter)</td>
-
 
103
                                    </tr>
-
 
104
 
-
 
105
                                    #end
-
 
106
                                </tbody>
-
 
107
 
-
 
108
                            </table>
-
 
109
                        </div>
-
 
110
                        <div id="ooStock" class="tab-pane fade">
-
 
111
                            <table class="table table-bordered" id="ooStransactionList">
-
 
112
                                <thead>
-
 
113
                                <tr>
-
 
114
                                    <th>Txn Id</th>
-
 
115
                                    <th>Retailer Name</th>
-
 
116
                                    <th>Created</th>
94
                                </td>
117
                                </tr>
-
 
118
                                </thead>
-
 
119
                                <tbody>
-
 
120
                                    #foreach($transaction in $outOfStockTransactionIds)
-
 
121
 
-
 
122
                                    <tr class="order_by_transaction redBg"
-
 
123
                                        data-transaction="$transaction.getTransactionId()">
-
 
124
                                        <td>$transaction.getTransactionId()</td>
-
 
125
                                        <td>
-
 
126
                                            <span>
-
 
127
                                                #if($transaction.getRetailerName())
-
 
128
                                                    $transaction.getRetailerName()
-
 
129
                                                #end
-
 
130
                                                #if($transaction.getRetailerCity() && $transaction.getRetailerState())
-
 
131
                                                    ($transaction.getRetailerCity(), $transaction.getRetailerState())
-
 
132
                                                #end
-
 
133
                                            </span>
-
 
134
                                        </td>
95
                                <td>$transaction.getCreateTimestamp().format($dateFormatter)</td>
135
                                        <td>$transaction.getCreateTimestamp().format($dateFormatter)</td>
-
 
136
                                    </tr>
-
 
137
 
-
 
138
                                    #end
-
 
139
                                </tbody>
-
 
140
 
96
                            </tr>
141
                            </table>
-
 
142
                        </div>
-
 
143
                    </div>
97
 
144
 
98
                            #end
-
 
99
                        </tbody>
-
 
100
 
145
 
101
                    </table>
-
 
102
                </div>
146
                </div>
103
            </div>
147
            </div>
104
        </div>
148
        </div>
105
    </div>
149
    </div>
106
    <div class="col-lg-8" id="transaction-detail-container">
150
    <div class="col-lg-8" id="transaction-detail-container">
Line 116... Line 160...
116
<script>
160
<script>
117
    $(document).ready(function () {
161
    $(document).ready(function () {
118
        $('#transactionList').DataTable(
162
        $('#transactionList').DataTable(
119
                {
163
                {
120
                    "bPaginate": true,
164
                    "bPaginate": true,
-
 
165
                    "pageLength": 50,
-
 
166
                    "bLengthChange": true,
-
 
167
                    "bFilter": true,
-
 
168
                    "bInfo": false,
-
 
169
                    "bAutoWidth": false
-
 
170
                }
-
 
171
        )
-
 
172
        ;$('#ooStransactionList').DataTable(
-
 
173
                {
-
 
174
                    "bPaginate": true,
-
 
175
                    "pageLength": 50,
121
                    "bLengthChange": true,
176
                    "bLengthChange": true,
122
                    "bFilter": true,
177
                    "bFilter": true,
123
                    "bInfo": false,
178
                    "bInfo": false,
124
                    "bAutoWidth": false
179
                    "bAutoWidth": false
125
                }
180
                }