Subversion Repositories SmartDukaan

Rev

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

Rev 26131 Rev 26293
Line 110... Line 110...
110
						function() {
110
						function() {
111
							var catalogId = parseInt($(this).data("catalog-id"));
111
							var catalogId = parseInt($(this).data("catalog-id"));
112
							var sellingPrice = parseInt($(this).data(
112
							var sellingPrice = parseInt($(this).data(
113
									"selling-price"));
113
									"selling-price"));
114
							var quantity = parseInt($(this).val());
114
							var quantity = parseInt($(this).val());
115
							if (quantity > 10) {
115
							if (quantity > 40) {
116
								alert("Quantity should not be above 10");
116
								alert("Quantity should not be above 40");
117
								if (catalogId in indentMap) {
117
								if (catalogId in indentMap) {
118
									$(this).val(indentMap[catalogId].quantity);
118
									$(this).val(indentMap[catalogId].quantity);
119
								} else {
119
								} else {
120
									$(this).val(0);
120
									$(this).val(0);
121
								}
121
								}