Subversion Repositories SmartDukaan

Rev

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

Rev 29846 Rev 29847
Line 106... Line 106...
106
 
106
 
107
					<td>$pc.getItemId()</td>
107
					<td>$pc.getItemId()</td>
108
					<td>$pc.getModelName() $pc.getModelNumber() ($pc.getColor())</td>
108
					<td>$pc.getModelName() $pc.getModelNumber() ($pc.getColor())</td>
109
					<td>$pc.getType()</td>
109
					<td>$pc.getType()</td>
110
					<td class="currency">$pc.getMrp()</td>
110
					<td class="currency">$pc.getMrp()</td>
111
					<td class="currency mop" data-value="$pc.getMop()">$pc.getMop()</td>
111
					<td class="currency" data-value="$pc.getMop()">$pc.getMop()</td>
112
					<td class="currency">$pc.getSellingPrice()</td>
112
					<td class="currency dp">$pc.getSellingPrice()</td>
113
					<td class="currency">$pc.getBasePayout()</td>
113
					<td class="currency">$pc.getBasePayout()</td>
114
					<td class="currency">$pc.getCashDiscount()</td>
114
					<td class="currency">$pc.getCashDiscount()</td>
115
					<td class="currency">$pc.getUpfrontMargin()</td>
115
					<td class="currency">$pc.getUpfrontMargin()</td>
116
					<td class="currency">$pc.getTertiaryPayout()</td>
116
					<td class="currency">$pc.getTertiaryPayout()</td>
117
					<td class="currency">$pc.getHygienePayout()</td>
117
					<td class="currency">$pc.getHygienePayout()</td>
Line 181... Line 181...
181
		let netLandingString = numberToComma(netLanding);
181
		let netLandingString = numberToComma(netLanding);
182
		$tr.find('.netprice').html(netLandingString);
182
		$tr.find('.netprice').html(netLandingString);
183
		
183
		
184
		let totalProfit =  $tr.find('.totalprofit').data('value') - diff;
184
		let totalProfit =  $tr.find('.totalprofit').data('value') - diff;
185
		let totalProfitString =  numberToComma(totalProfit);
185
		let totalProfitString =  numberToComma(totalProfit);
186
		$tr.find('.totalprofit').html(totalProfit);
186
		$tr.find('.totalprofit').html(totalProfitString);
187
		
187
		
188
		##let rouoff = totalProfit / (netLanding / 1.18) * 100;
188
		##let rouoff = totalProfit / (netLanding / 1.18) * 100;
189
		let rouoff = totalProfit / ($tr.find('.mop').data('value') / 1.18) * 100;
189
		let rouoff = totalProfit / ($tr.find('.dp').data('value') / 1.18) * 100;
190
		let roundOff = Math.round(rouoff * 100.0) / 100.0;
190
		let roundOff = Math.round(rouoff * 100.0) / 100.0;
191
		$tr.find('.netmargin').html(roundOff);
191
		$tr.find('.netmargin').html(roundOff);
192
	});
192
	});
193
</script>
193
</script>
194
194