Subversion Repositories SmartDukaan

Rev

Rev 7676 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7410 amar.kumar 1
 
2
function selectWarehouseForPOCreation() {
3
	$('#warehouse-selector-po-creation').show();
4
	$.colorbox({
5
		inline : true,
6
        width : "325px",
7
        height : "175px",
8
        opacity : "0.30",
9
        overlayClose :	true,
10
        escKey :	true,
11
        href : "#warehouse-selector-po-creation",
12
        onClosed : function() {
13
            $("#warehouse-selector-po-creation").hide();
14
            $('#warehouse-selection-error').html("");
15
        }
16
	});
17
	event.preventDefault();
18
	return false;
19
}
20
 
21
function selectWarehouseForListingPO() {
22
	$('#warehouse-selector-po-recieve').show();
23
	$.colorbox({
24
		inline : true,
25
        width : "325px",
26
        height : "175px",
27
        opacity : "0.30",
28
        overlayClose :	true,
29
        escKey :	true,
30
        href : "#warehouse-selector-po-recieve",
31
        onClosed : function() {
32
            $("#warehouse-selector-po-recieve").hide();
33
            $('#warehouse-selection-error').html("");
34
        }
35
	});
36
	event.preventDefault();
37
	return false;
38
}
39
 
40
function openPOCreationPage() {
41
	$.colorbox.close();
42
	warehouseId = $("#warehouse-selector-po-creation input[name='warehouse']:checked").val();
43
	if(warehouseId != 'undefined') {
44
		this.location.href = "/inventory/purchase-order/new?warehouseId="+warehouseId;
45
	} else {
46
		$('#warehouse-selection-error').html("<span>Please select warehouse</span>");
47
	}
48
}
49
 
50
function showOpenPOpage() {
51
	$.colorbox.close();
52
	warehouseId = $("#warehouse-selector-po-recieve input[name='warehouse']:checked").val();
53
	if(warehouseId != 'undefined') {
54
		this.location.href = "/inventory/purchase-order?warehouseId="+warehouseId;
55
	} else {
56
		$('#warehouse-selection-error').html("<span>Please select warehouse</span>");
57
	}
58
}