Subversion Repositories SmartDukaan

Rev

Rev 15435 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15435 Rev 15760
Line 141... Line 141...
141
$('input#margin').removeClass();
141
$('input#margin').removeClass();
142
$('input#marginPer').removeClass();
142
$('input#marginPer').removeClass();
143
var itemWeight=$('#itemWeight').val();
143
var itemWeight=$('#itemWeight').val();
144
itemWeight = +itemWeight+.05;
144
itemWeight = +itemWeight+.05;
145
if (itemWeight==0){
145
if (itemWeight==0){
146
	var courierCost =55;
146
	var courierCost =64;
147
}
147
}
148
else{
148
else{
149
var slabs = parseInt((parseFloat(itemWeight)-.001)/.5)
149
var slabs = parseInt((parseFloat(itemWeight)-.001)/.5)
150
var courierCost = 55;
150
var courierCost = 64;
151
for (var i=0;i<slabs;i++)
151
for (var i=0;i<slabs;i++)
152
{
152
{
153
	courierCost = courierCost + 40;
153
	courierCost = courierCost + 34;
154
}
154
}
155
}
155
}
156
var sellingPrice=$('#sellingPrice').val();
156
var sellingPrice=$('#sellingPrice').val();
157
var nlc=$('#maxNlc').val();
157
var nlc=$('#maxNlc').val();
158
var otherCost=$('#otherCost').val();
158
var otherCost=$('#otherCost').val();