| Line 170... |
Line 170... |
| 170 |
</script>
|
170 |
</script>
|
| 171 |
<script type="text/javascript">
|
171 |
<script type="text/javascript">
|
| 172 |
$('#getMxNlc').live('click', function(){
|
172 |
$('#getMxNlc').live('click', function(){
|
| 173 |
var itemId=$('#itemId').val();
|
173 |
var itemId=$('#itemId').val();
|
| 174 |
var warehouseId=$('#warehouseId').val();
|
174 |
var warehouseId=$('#warehouseId').val();
|
| - |
|
175 |
var sellingPrice=$('#sellingPrice').val();
|
| - |
|
176 |
if ( warehouseId==null || warehouseId=="" || isNaN(warehouseId)){
|
| - |
|
177 |
jAlert('Please enter valid warehouse id', 'ERROR');
|
| - |
|
178 |
return false;
|
| - |
|
179 |
}
|
| - |
|
180 |
if (sellingPrice==0 || sellingPrice=="" || isNaN(sellingPrice)){
|
| - |
|
181 |
jAlert('Illegal Entry In Selling Price', 'ERROR');
|
| - |
|
182 |
return false;
|
| - |
|
183 |
}
|
| 175 |
jQuery.ajax({
|
184 |
jQuery.ajax({
|
| 176 |
type : "GET",
|
185 |
type : "GET",
|
| 177 |
url : "/Support/snapdeal-list!ke$ha?itemId="+itemId+"&warehouseId="+warehouseId,
|
186 |
url : "/Support/snapdeal-list!ke$ha?itemId="+itemId+"&warehouseId="+warehouseId+"&sellingPrice="+sellingPrice,
|
| 178 |
beforeSend: function(){
|
187 |
beforeSend: function(){
|
| 179 |
$('#ajax-spinner').show();
|
188 |
$('#ajax-spinner').show();
|
| 180 |
},
|
189 |
},
|
| 181 |
complete: function(){
|
190 |
complete: function(){
|
| 182 |
$('#ajax-spinner').hide();
|
191 |
$('#ajax-spinner').hide();
|
| 183 |
},
|
192 |
},
|
| 184 |
success : function(json){
|
193 |
success : function(json){
|
| 185 |
var parsedData = JSON.parse(json);
|
194 |
var parsedData = JSON.parse(json);
|
| 186 |
$('input#maxNlc').val(parsedData.MaxNlc);
|
195 |
$('input#maxNlc').val(parsedData.MaxNlc);
|
| - |
|
196 |
$('input#vat').val(parsedData.VatRate);
|
| 187 |
calculateStuff();
|
197 |
calculateStuff();
|
| 188 |
},
|
198 |
},
|
| 189 |
error : function() {
|
199 |
error : function() {
|
| 190 |
$('input#warehouseId').val('');
|
200 |
$('input#warehouseId').val('');
|
| 191 |
$('input#maxNlc').val('');
|
201 |
$('input#maxNlc').val('');
|
| Line 410... |
Line 420... |
| 410 |
<td class="detail">Courier Cost</td>
|
420 |
<td class="detail">Courier Cost</td>
|
| 411 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" readonly/></td>
|
421 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" readonly/></td>
|
| 412 |
</tr>
|
422 |
</tr>
|
| 413 |
<tr>
|
423 |
<tr>
|
| 414 |
<td class="detail">VAT %</td>
|
424 |
<td class="detail">VAT %</td>
|
| 415 |
<td class="value"><input id="vat" name="vat" value='$mpDetail.getVat()' type="text" readonly/></td>
|
425 |
<td class="value"><input id="vat" name="vat" value='$mpDetail.getVat()' type="text" onkeyup="calculateStuff()"></td>
|
| 416 |
</tr>
|
426 |
</tr>
|
| 417 |
<tr>
|
427 |
<tr>
|
| 418 |
<td class="detail">Item Id @ Snapdeal</td>
|
428 |
<td class="detail">Item Id @ Snapdeal</td>
|
| 419 |
#if($itemDetail.getSkuAtSnapdeal())
|
429 |
#if($itemDetail.getSkuAtSnapdeal())
|
| 420 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='$itemDetail.getSkuAtSnapdeal()' type="text"></td>
|
430 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='$itemDetail.getSkuAtSnapdeal()' type="text"></td>
|
| Line 501... |
Line 511... |
| 501 |
#set($holdInventoryMap = $action.getHoldInventoryMapForItem())
|
511 |
#set($holdInventoryMap = $action.getHoldInventoryMapForItem())
|
| 502 |
#set($warehouseCheck="False")
|
512 |
#set($warehouseCheck="False")
|
| 503 |
#if ($whObj.getWarehouseType()=="OURS" && $whObj.getInventoryType()=="GOOD")
|
513 |
#if ($whObj.getWarehouseType()=="OURS" && $whObj.getInventoryType()=="GOOD")
|
| 504 |
#set($warehouseCheck="True")
|
514 |
#set($warehouseCheck="True")
|
| 505 |
#end
|
515 |
#end
|
| - |
|
516 |
#set($index = $whObj.getLocation().lastIndexOf(","))
|
| - |
|
517 |
#set($index = $index+1)
|
| 506 |
<td style="text-align:center;width:5%;">$keyAvailable</td>
|
518 |
<td style="text-align:center;width:5%;">$keyAvailable</td>
|
| 507 |
<td style="text-align:center;width:10%;">$whObj.getDisplayName()</td>
|
519 |
<td style="text-align:center;width:10%;">$whObj.getDisplayName()</td>
|
| 508 |
<td style="text-align:center;width:30%;">$whObj.getLocation()</td>
|
520 |
<td style="text-align:center;width:10%;">$whObj.getLocation().substring($index)</td>
|
| 509 |
<td style="text-align:center;width:10%;">$whObj.getWarehouseType()</td>
|
521 |
<td style="text-align:center;width:10%;">$whObj.getWarehouseType()</td>
|
| 510 |
<td style="text-align:center;width:5%;">$whObj.getInventoryType()</td>
|
522 |
<td style="text-align:center;width:8%;">$whObj.getInventoryType()</td>
|
| 511 |
<td style="text-align:center;width:5%;">$availability.get($keyAvailable)</td>
|
523 |
<td style="text-align:center;width:8%;">$availability.get($keyAvailable)</td>
|
| 512 |
<td style="text-align:center;width:5%;">$reserved.get($keyAvailable)</td>
|
524 |
<td style="text-align:center;width:8%;">$reserved.get($keyAvailable)</td>
|
| 513 |
<td style="text-align:center;width:5%;">#if($$holdInventoryMap.get(6))$holdInventoryMap.get(6)#{else}0#end</td>
|
525 |
<td style="text-align:center;width:8%;">#if($$holdInventoryMap.get(6))$holdInventoryMap.get(6)#{else}0#end</td>
|
| 514 |
<td style="text-align:center;width:5%;">#if($$holdInventoryMap.get(8))$holdInventoryMap.get(8)#{else}0#end</td>
|
526 |
<td style="text-align:center;width:8%;">#if($$holdInventoryMap.get(8))$holdInventoryMap.get(8)#{else}0#end</td>
|
| 515 |
<td style="text-align:center;">
|
527 |
<td style="text-align:center;">
|
| 516 |
#if ($warehouseCheck=="True")
|
528 |
#if ($warehouseCheck=="True")
|
| 517 |
<input id="heldInventory_$keyAvailable" name="heldInventory" value='#if($holdInventoryMap.get(7))$holdInventoryMap.get(7)#{else}0#end' type="text" style="width:20%;"/>
|
529 |
<input id="heldInventory_$keyAvailable" name="heldInventory" value='#if($holdInventoryMap.get(7))$holdInventoryMap.get(7)#{else}0#end' type="text" style="width:20%;"/>
|
| 518 |
<input type="button" class="changeHeld" value="Update" warehouse_id="$keyAvailable" item_id="$itemDetail.getItem_id()" style="width:20%;margin-left:10px;">
|
530 |
<input type="button" class="changeHeld" value="Update" warehouse_id="$keyAvailable" item_id="$itemDetail.getItem_id()" style="width:20%;margin-left:10px;">
|
| 519 |
#else
|
531 |
#else
|