Subversion Repositories SmartDukaan

Rev

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

Rev 33253 Rev 33257
Line 10... Line 10...
10
    <table id="wareHouseTransactionTable" class="table table-striped table-advance table-hover" style="width:100%">
10
    <table id="wareHouseTransactionTable" class="table table-striped table-advance table-hover" style="width:100%">
11
        <thead>
11
        <thead>
12
        <tr>
12
        <tr>
13
            <th>Id</th>
13
            <th>Id</th>
14
            <th>Product Desc</th>
14
            <th>Product Desc</th>
15
            <th>Scanned Qty</th>
15
            <th> Qty</th>
16
            <th>U.Price</th>
16
            <th>U.Price</th>
17
            <th>Imeis/Quantity to Bill</th>
17
            <th>Imeis/Qty to Bill</th>
18
        </tr>
18
        </tr>
19
        </thead>
19
        </thead>
20
        <tbody>
20
        <tbody>
21
            #if(!$inStockOrdersSerialized.isEmpty())
21
            #if(!$inStockOrdersSerialized.isEmpty())
22
                #foreach($order in $inStockOrdersSerialized)
22
                #foreach($order in $inStockOrdersSerialized)
23
                <tr class="main-tr">
23
                <tr class="main-tr">
24
                    <td class="orderId">$order.getId()</td>
24
                    <td class="orderId">$order.getId()</td>
-
 
25
                    <td>$order.getLineItem().getItemId()</td>
25
                    <td>$order.getLineItem().getItemDescription()</td>
26
                    <td>$order.getLineItem().getItemDescription()</td>
26
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
27
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
27
                    </td>
28
                    </td>
28
                    <td>$order.getLineItem().getUnitPrice()</td>
29
                    <td>$order.getLineItem().getUnitPrice()</td>
29
                    #if($order.getLineItem().getItem().getType()=="SERIALIZED")
30
                    #if($order.getLineItem().getItem().getType()=="SERIALIZED")
Line 38... Line 39...
38
                                #set($agingModelValueMap = $agingModel.getValue())
39
                                #set($agingModelValueMap = $agingModel.getValue())
39
                                #set($counter = 0)
40
                                #set($counter = 0)
40
                                #foreach ($aging in $agingModelValueMap.entrySet())
41
                                #foreach ($aging in $agingModelValueMap.entrySet())
41
                                    #if($agingModelValueMap)
42
                                    #if($agingModelValueMap)
42
                                    <tr>
43
                                    <tr>
43
                                        <td colspan="5">
44
                                        <td colspan="6">
44
                                            <table class="table table-responsive table-bordered"
45
                                            <table class="table table-responsive table-bordered"
45
                                                   style="margin-bottom: 0;">
46
                                                   style="margin-bottom: 0;">
46
                                                <tbody>
47
                                                <tbody>
47
 
48
 
48
                                                <tr>
49
                                                <tr>
Line 77... Line 78...
77
            #end
78
            #end
78
            #if(!$inStockOrdersNonSerialized.isEmpty())
79
            #if(!$inStockOrdersNonSerialized.isEmpty())
79
                #foreach($order in $inStockOrdersNonSerialized)
80
                #foreach($order in $inStockOrdersNonSerialized)
80
                <tr class="main-tr">
81
                <tr class="main-tr">
81
                    <td class="orderId">$order.getId()</td>
82
                    <td class="orderId">$order.getId()</td>
-
 
83
                    <td>$order.getLineItem().getItemId()</td>
82
                    <td>$order.getLineItem().getItemDescription()</td>
84
                    <td>$order.getLineItem().getItemDescription()</td>
83
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
85
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
84
                    </td>
86
                    </td>
85
                    <td>$order.getLineItem().getUnitPrice()</td>
87
                    <td>$order.getLineItem().getUnitPrice()</td>
86
                    <td><input type="text" class="form-control filledQty" placeholder="Fill Qty"></td>
88
                    <td><input type="text" class="form-control filledQty" placeholder="Fill Qty"></td>
87
                </tr>
89
                </tr>
88
                <tr>
90
                <tr>
89
                    <td colspan="5">Available Quantity :
91
                    <td colspan="6">Available Quantity :
90
                        - $orderIdStockAvailabilityMap.getOrDefault($order.getId(),0)</td>
92
                        - $orderIdStockAvailabilityMap.getOrDefault($order.getId(),0)</td>
91
                </tr>
93
                </tr>
92
                #end
94
                #end
93
            #end
95
            #end
94
            #if($inStockOrdersSerialized.isEmpty() && $inStockOrdersNonSerialized.isEmpty())
96
            #if($inStockOrdersSerialized.isEmpty() && $inStockOrdersNonSerialized.isEmpty())
95
            <tr>
97
            <tr>
96
                <td colspan="5"> No Order Found</td>
98
                <td colspan="6"> No Order Found</td>
97
            </tr>
99
            </tr>
98
            #end
100
            #end
99
        </tbody>
101
        </tbody>
100
    </table>
102
    </table>
101
    <div class="row">
103
    <div class="row">
Line 109... Line 111...
109
    <h4>Out of Stock </h4>
111
    <h4>Out of Stock </h4>
110
    <table id="wareHouseTransactionTable" class="table table-striped table-advance table-hover" style="width:100%">
112
    <table id="wareHouseTransactionTable" class="table table-striped table-advance table-hover" style="width:100%">
111
        <thead>
113
        <thead>
112
        <tr>
114
        <tr>
113
            <th>Id</th>
115
            <th>Id</th>
-
 
116
            <th>Item Id</th>
114
            <th>Product Desc</th>
117
            <th>Desc</th>
115
            <th>Scanned Qty</th>
118
            <th>Qty</th>
116
            <th>U.Price</th>
119
            <th>U.Price</th>
-
 
120
            <th>Action</th>
117
        </tr>
121
        </tr>
118
        </thead>
122
        </thead>
119
        <tbody>
123
        <tbody>
120
            #if(!$oOSOrdersSerialized.isEmpty())
124
            #if(!$oOSOrdersSerialized.isEmpty())
121
                #foreach($order in $oOSOrdersSerialized)
125
                #foreach($order in $oOSOrdersSerialized)
122
                <tr class="main-tr">
126
                <tr class="main-tr">
123
                    <td class="orderId">$order.getId()</td>
127
                    <td class="orderId">$order.getId()</td>
-
 
128
                    <td>$order.getLineItem().getItemId()</td>
124
                    <td>$order.getLineItem().getItemDescription()</td>
129
                    <td>$order.getLineItem().getItemDescription()</td>
125
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
130
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
126
                    </td>
131
                    </td>
127
                    <td>$order.getLineItem().getUnitPrice()</td>
132
                    <td>$order.getLineItem().getUnitPrice()</td>
-
 
133
                    <td>
-
 
134
                        <button type="button" class="btn btn-primary btn-sm changeWarehouse-mk" data-toggle="modal"
-
 
135
                                data-target="#changeWarehouseModal" data-OrderId="$order.getId()"
-
 
136
                                data-itemId="$order.getLineItem().getItemId()"
-
 
137
                                data-warehouseId="$order.getWarehouseId()">
-
 
138
                            Change
-
 
139
                        </button>
-
 
140
                    </td>
128
                </tr>
141
                </tr>
129
                #end
142
                #end
130
            #end
143
            #end
131
            #if(!$outOfStockOrdersNonSerialized.isEmpty())
144
            #if(!$outOfStockOrdersNonSerialized.isEmpty())
132
                #foreach($order in $outOfStockOrdersNonSerialized)
145
                #foreach($order in $outOfStockOrdersNonSerialized)
133
                <tr class="main-tr">
146
                <tr class="main-tr">
134
                    <td class="orderId">$order.getId()</td>
147
                    <td class="orderId">$order.getId()</td>
-
 
148
                    <td>$order.getLineItem().getItemId()</td>
135
                    <td>$order.getLineItem().getItemDescription()</td>
149
                    <td>$order.getLineItem().getItemDescription()</td>
136
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
150
                    <td><span class="remainQty">0</span> / <span class="qty">$order.getLineItem().getQuantity()</span>
137
                    </td>
151
                    </td>
138
                    <td>$order.getLineItem().getUnitPrice()</td>
152
                    <td>$order.getLineItem().getUnitPrice()</td>
-
 
153
                    <td>
-
 
154
                        <button type="button" class="btn btn-primary btn-sm changeWarehouse-mk" data-toggle="modal"
-
 
155
                                data-target="#changeWarehouseModal" data-OrderId="$order.getId()"
-
 
156
                                data-itemId="$order.getLineItem().getItemId()"
-
 
157
                                data-warehouseId="$order.getWarehouseId()">
-
 
158
                            Change
-
 
159
                        </button>
-
 
160
                    </td>
139
                </tr>
161
                </tr>
140
                #end
162
                #end
141
            #end
163
            #end
142
            #if($outOfStockOrders.isEmpty() && $outOfStockOrdersNonSerialized.isEmpty())
164
            #if($outOfStockOrders.isEmpty() && $outOfStockOrdersNonSerialized.isEmpty())
143
            <tr>
165
            <tr>
144
                <td colspan="4"> No Order Found</td>
166
                <td colspan="6"> No Order Found</td>
145
            </tr>
167
            </tr>
146
            #end
168
            #end
147
        </tbody>
169
        </tbody>
148
    </table>
170
    </table>
149
</div>
171
</div>
150
 
172
 
-
 
173
##bootstrap popup
-
 
174
<div class="modal fade" id="changeWarehouseModal" role="dialog">
-
 
175
    <div class="modal-dialog modal-sm">
-
 
176
 
-
 
177
        <!-- Modal content-->
-
 
178
        <div class="modal-content">
-
 
179
            <div class="modal-header">
-
 
180
                <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
181
                <h4 class="modal-title">Change Warehouse</h4>
-
 
182
            </div>
-
 
183
            <div class="modal-body">
-
 
184
            </div>
-
 
185
            <div class="modal-footer">
-
 
186
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
-
 
187
                <button type="button" class="btn btn-info change-warehouse-save-mk" data-dismiss="modal">Submit</button>
-
 
188
            </div>
-
 
189
        </div>
-
 
190
 
-
 
191
    </div>
-
 
192
</div>
-
 
193
 
151
<script>
194
<script>
152
    $(document).ready(function () {
195
    $(document).ready(function () {
153
        $("#wareHouseTransactionTable > tbody > tr").each(function () {
196
        $("#wareHouseTransactionTable > tbody > tr").each(function () {
154
            var qtyElem = $(this).find(".qty");
197
            var qtyElem = $(this).find(".qty");
155
            var remainQtyElem = $(this).find(".remainQty");
198
            var remainQtyElem = $(this).find(".remainQty");