Subversion Repositories SmartDukaan

Rev

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

Rev 18528 Rev 18546
Line 330... Line 330...
330
    $("span.lineitemqty[data-id='"+sku+"']").text(newVal);
330
    $("span.lineitemqty[data-id='"+sku+"']").text(newVal);
331
	btn.closest('.number-spinner').find('input').val(newVal);
331
	btn.closest('.number-spinner').find('input').val(newVal);
332
	
332
	
333
	
333
	
334
	if (bulkpricing != undefined && bulkpricing.length > 1){
334
	if (bulkpricing != undefined && bulkpricing.length > 1){
335
		bulkpricing = bulkpricing.sort(function(a, b){
335
//		bulkpricing = bulkpricing.sort(function(a, b){
336
		    return a.quantity - b.quantity;
336
//		    return a.quantity - b.quantity;
337
		});
337
//		});
-
 
338
		
338
    	for(var i=0;i<bulkpricing.length;i++)
339
    	for(var i=0;i<bulkpricing.length;i++)
339
    		{
340
    		{
340
    			if(newVal<bulkpricing[i]['quantity']){
341
    			if(newVal<bulkpricing[i]['quantity']){
341
    				break;
342
    				break;
342
    			}
343
    			}