Subversion Repositories SmartDukaan

Rev

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

Rev 9242 Rev 9478
Line 92... Line 92...
92
}
92
}
93
</script>
93
</script>
94
<script type="text/javascript">
94
<script type="text/javascript">
95
$('#populateStuff').live('click', function(){
95
$('#populateStuff').live('click', function(){
96
	var itemId=document.forms["add-new-item"]["itemId"].value;
96
	var itemId=document.forms["add-new-item"]["itemId"].value;
-
 
97
	var warehouseId=document.forms["add-new-item"]["warehouseId"].value;
-
 
98
	if ( warehouseId==null || warehouseId=="" || isNaN(warehouseId)){
-
 
99
		alert(warehouseId);
-
 
100
		jAlert('Please enter valid warehouse id', 'ERROR');
-
 
101
		return false;
-
 
102
	}
97
	jQuery.ajax({
103
	jQuery.ajax({
98
        type : "GET",
104
        type : "GET",
99
        url : "/Support/snapdeal-list!getItemDetailsInJson?itemId="+itemId,
105
        url : "/Support/snapdeal-list!getItemDetailsInJson?itemId="+itemId+"&warehouseId="+warehouseId,
100
		beforeSend: function(){
106
		beforeSend: function(){
101
        $('#ajax-spinner').show();
107
        $('#ajax-spinner').show();
102
		$('#add-new-item')[0].reset();
108
		$('#add-new-item')[0].reset();
103
        },
109
        },
104
        complete: function(){
110
        complete: function(){
Line 120... Line 126...
120
		$('input#transferPrice').val('0.0');
126
		$('input#transferPrice').val('0.0');
121
		$('input#exceptionPrice').val('0.0');
127
		$('input#exceptionPrice').val('0.0');
122
		$('input#commission').val('0.0');
128
		$('input#commission').val('0.0');
123
		$('input#serviceTax').val('0.0');
129
		$('input#serviceTax').val('0.0');
124
		$('input#courierCost').val('0.0');
130
		$('input#courierCost').val('0.0');
-
 
131
		$('input#maxNlc').val(parsedData.MaxNlc);
-
 
132
		$('input#warehouseId').val(warehouseId);
125
        },
133
        },
126
		error : function() {
134
		error : function() {
127
			alert("Either item id is already present in snapdeal item or its not a valid item Id");
135
			alert("Either item id is already present in snapdeal item or  not a valid item Id");
128
		 },
136
		 },
129
    });
137
    });
130
	return false;
138
	return false;
131
});
139
});
132
</script>
140
</script>
Line 183... Line 191...
183
<td class="detail">Suppress Price Feed</td>
191
<td class="detail">Suppress Price Feed</td>
184
<td class="value">
192
<td class="value">
185
      <select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
193
      <select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
186
</td>
194
</td>
187
</tr>
195
</tr>
-
 
196
<tr>
-
 
197
<td class="detail">Max NLC</td>
-
 
198
<td class="value"><input id="maxNlc" name="maxNlc" value=''type="text"></td>
-
 
199
</tr>
-
 
200
<tr>
188
</tbody>
201
</tbody>
189
</table>
202
</table>
190
</div>
203
</div>
191
<div class="left" style="float: right; width: 48%;">
204
<div class="left" style="float: right; width: 48%;">
192
<table id="upload" style="text-align: center;width: 100%;height:200px;">
205
<table id="upload" style="text-align: center;width: 100%;height:200px;">
Line 232... Line 245...
232
<tr>
245
<tr>
233
<td class="detail">Courier Cost</td>
246
<td class="detail">Courier Cost</td>
234
<td class="value"><input id="courierCost" name="courierCost" value='' type="text" readonly/></td>
247
<td class="value"><input id="courierCost" name="courierCost" value='' type="text" readonly/></td>
235
</tr>
248
</tr>
236
<tr>
249
<tr>
-
 
250
<td class="detail">Item Id &#64; Snapdeal</td>
-
 
251
<td class="value"><input id="sdItemCode" name="sdItemCode" value='' type="text"></td>
-
 
252
</tr>
-
 
253
<tr>
237
<td class="detail">Action</td>
254
<td class="detail">Action</td>
238
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
255
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
239
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
256
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
240
</td>
257
</td>
241
</tr>
258
</tr>