Subversion Repositories SmartDukaan

Rev

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

Rev 13051 Rev 13054
Line 18... Line 18...
18
        data      : 'itemId=' + itemId + '&supplierId=' + supplierId,
18
        data      : 'itemId=' + itemId + '&supplierId=' + supplierId,
19
        success   : function(response) {
19
        success   : function(response) {
20
            $(trElement).find('div#modelName').html(response.split('~')[0]);
20
            $(trElement).find('div#modelName').html(response.split('~')[0]);
21
            $(trElement).find('input[name="unitPrice"]').val(response.split('~')[1]);
21
            $(trElement).find('input[name="unitPrice"]').val(response.split('~')[1]);
22
            $(trElement).find('input[name="nlc"]').val(response.split('~')[2]);
22
            $(trElement).find('input[name="nlc"]').val(response.split('~')[2]);
23
            if(response.split('~')[3].indexOf('<')>0){
-
 
24
            	$(trElement).find('input[name="mrp"]').val(response.split('~')[3].split('<')[0]);
-
 
25
            }
-
 
26
            else{
-
 
27
            	$(trElement).find('input[name="mrp"]').val(response.split('~')[3]);
23
            $(trElement).find('input[name="mrp"]').val(response.split('~')[3]);
28
            }
-
 
29
        }
24
        }
30
    });
25
    });
31
}
26
}
32
 
27
 
33
function closePO(id){
28
function closePO(id){
Line 159... Line 154...
159
                }
154
                }
160
            }
155
            }
161
        });
156
        });
162
    }    
157
    }    
163
}
158
}
164
 
159
/*
165
function submitSetWeightForm(itemId,weight,poId){
160
function submitSetWeightForm(itemId,weight,poId){
166
	$.ajax({
161
	$.ajax({
167
        type : 'POST',
162
        type : 'POST',
168
        url : '/inventory/purchase-order!setWeightForItemProdAndStaging?itemId='+itemId+"&weightVal="+weight+"&poId="+poId,
163
        url : '/inventory/purchase-order!setWeightForItemProdAndStaging?itemId='+itemId+"&weightVal="+weight+"&poId="+poId,
169
        success : function(response) {
164
        success : function(response) {
Line 173... Line 168...
173
        	//alert("Error in refund");
168
        	//alert("Error in refund");
174
        	document.location.href = '/inventory/purchase-order/' + $('.poId').val();
169
        	document.location.href = '/inventory/purchase-order/' + $('.poId').val();
175
        }
170
        }
176
    });
171
    });
177
	
172
	
178
}
-
 
179
173
}*/
-
 
174
180
175