Subversion Repositories SmartDukaan

Rev

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

Rev 18668 Rev 25114
Line 37... Line 37...
37
    	}else{
37
    	}else{
38
    		$("select#bulkScanUploadItem").val("-1");
38
    		$("select#bulkScanUploadItem").val("-1");
39
    		$("div#selectItem").hide();
39
    		$("div#selectItem").hide();
40
    	}
40
    	}
41
    });
41
    });
42
    
-
 
43
    /*$('#transfer-items-button').live('click', function(){
-
 
44
    	var transferWarehouseId = $('input[name="transferWarehouseId"]').val();
-
 
45
    	$.ajax({
-
 
46
    		type : "GET",
-
 
47
            url : "/inventory/purchase!setTransferItemsOption",
-
 
48
            data : "transferWarehouseId="+transferWarehouseId,
-
 
49
            success : function(response) {
-
 
50
                $('div#item-transfer-warehouse-selector').html("Items will be transferred to Warehouse ");
-
 
51
                $('form#scanItem').append($('<input type = "hidden" name="transferWarehouseId" value="12">'));
-
 
52
            }
-
 
53
    	});
-
 
54
    });*/
-
 
55
});
42
});
-
 
43
function updateModelNameInvoicePrice(inputElement, itemId, invoicePrice, poId) {
-
 
44
	$.ajax({
-
 
45
		type      : 'GET',
-
 
46
		url       : '/inventory/purchase-order!updateItemInvoicePrice',
-
 
47
		data      : 'itemId=' + itemId + '&poId=' + poId + '&invoicePrice=' + invoicePrice,
-
 
48
		success   : function(response) {
-
 
49
			$(inputElement).css('background-color', '#bfbfbf');
-
 
50
		}
-
 
51
	});
-
 
52
}