Subversion Repositories SmartDukaan

Rev

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

Rev 33741 Rev 34373
Line 3... Line 3...
3
        width: 100%;
3
        width: 100%;
4
    }
4
    }
5
</style>
5
</style>
6
<div class="well" style="padding: 10px;">
6
<div class="well" style="padding: 10px;">
7
    <p><b>#<span id="selectedTransactionId"></span> - Order List</b></p>
7
    <p><b>#<span id="selectedTransactionId"></span> - Order List</b></p>
-
 
8
    #if($address)
-
 
9
        <p><b>Address - $address.getAddressDescription()</b></p>
-
 
10
    #else
-
 
11
        <p><b>Address - $oneOrder.getRetailerAddress1(),$oneOrder.getRetailerAddress2(),$oneOrder.getRetailerState(),$oneOrder.getRetailerPinCode()</b></p>
-
 
12
    #end
8
    <input type="hidden" id="selectedWarehouseId">
13
    <input type="hidden" id="selectedWarehouseId">
-
 
14
    <input type="hidden" id="samePinCheck">
9
    <h4>In Stock </h4>
15
    <h4>In Stock </h4>
10
    <table id="wareHouseTransactionTable" class="table table-striped table-advance table-hover" style="width:100%">
16
    <table id="wareHouseTransactionTable" class="table table-striped table-advance table-hover" style="width:100%">
11
        <thead>
17
        <thead>
12
        <tr>
18
        <tr>
13
            <th>Id</th>
19
            <th>Id</th>
Line 156... Line 162...
156
                                    $rider.getRiderName() - $rider.getVehicleNumber()
162
                                    $rider.getRiderName() - $rider.getVehicleNumber()
157
                                </option>
163
                                </option>
158
                            #end
164
                            #end
159
                        </select>
165
                        </select>
160
                    </div>
166
                    </div>
-
 
167
                    <div class="col-sm-2 mk_distanceField" style="display: none">
-
 
168
                        <input class="form-control mk_distanceValue" type="text" placeholder="enter approx distance"
-
 
169
                        />
-
 
170
                    </div>
161
                    <div class="col-sm-4 pull-right">
171
                    <div class="col-sm-4 pull-right">
162
                        <button type="button" class="btn btn-info pull-right order_accepted">Generate Bill</button>
172
                        <button type="button" class="btn btn-info pull-right order_accepted">Generate Bill</button>
163
                    </div>
173
                    </div>
164
                </div>
174
                </div>
165
 
175
 
Line 274... Line 284...
274
    </div>
284
    </div>
275
</div>
285
</div>
276
 
286
 
277
<script>
287
<script>
278
    $(document).ready(function () {
288
    $(document).ready(function () {
279
        debugger;
-
 
280
        $("#wareHouseTransactionTable > tbody > tr").each(function () {
289
        $("#wareHouseTransactionTable > tbody > tr").each(function () {
281
            var qtyElem = $(this).find(".qty");
290
            var qtyElem = $(this).find(".qty");
282
            var remainQtyElem = $(this).find(".remainQty");
291
            var remainQtyElem = $(this).find(".remainQty");
283
            var qty = parseInt(qtyElem.text()); // Get initial quantity
292
            var qty = parseInt(qtyElem.text()); // Get initial quantity
284
            var imeiInputElem = $(this).find(".imeis-to-grn");
293
            var imeiInputElem = $(this).find(".imeis-to-grn");
Line 339... Line 348...
339
        });
348
        });
340
 
349
 
341
        $("select.mk_provider").change(function () {
350
        $("select.mk_provider").change(function () {
342
            $('div.mk_rider').hide();
351
            $('div.mk_rider').hide();
343
            $('div.mk_self').hide();
352
            $('div.mk_self').hide();
-
 
353
            $('div.mk_distanceField').hide();
344
            let providerId = $(this).val();
354
            let providerId = $(this).val();
345
            if (providerId == SELF_PICKUP) {
355
            if (providerId == SELF_PICKUP) {
346
                $('div.mk_rider').hide();
356
                $('div.mk_rider').hide();
-
 
357
                $('div.mk_distanceField').hide();
347
                $('div.mk_self').show();
358
                $('div.mk_self').show();
348
            } else if (providerId == RUNNER) {
359
            } else if (providerId == RUNNER) {
-
 
360
                var transactionId = $("#selectedTransactionId").text();
-
 
361
                var warehouseId = $("#selectedWarehouseId").val();
-
 
362
                console.log("transactionId - ",transactionId);
-
 
363
                console.log("warehouseId - ",warehouseId);
349
                $('div.mk_self').hide();
364
                $('div.mk_self').hide();
350
                $('div.mk_rider').show();
365
                $('div.mk_rider').show();
-
 
366
                checkSamePincodeAndGiveDistanceField(transactionId,warehouseId);
351
 
367
 
352
            }
368
            }
353
        });
369
        });
354
    });
370
    });
355
</script>
371
</script>