<h1>Pricing for <%= @group.name %></h1>
<% curr_product = '' %>
<table>
<%= form_for @group do |form| %>
	<% Variant.order(:product_id).each do |v|%>
	<% if curr_product != v.product_id%>
		<% curr_product = v.product_id %>
		<tr><td colspan="2"><h2><%= v.product.name %></h2></td></tr>
	<% end %>
	
	<% ugv = UserGroupsVariant.where(:user_group_id => @group).where(:variant_id => v).first%>
	<tr><td><%= variant_options(v) %> (<%= v.sku %>)</td><td><input name="price[<%= @group.id %>][<%= v.id %>]" value="<%= ugv.price if ugv %>"></td></tr>
	<% end %>
	</table>
	<%= form.submit %>
<% end %>
	

<h1>Pricing for <%= @group.name %></h1>
<% curr_product = '' %>
<table>
	<%= form_for @group do |form| %>
	<% Variant.order(:product_id).each do |v|%>
	<% if curr_product != v.product_id%>
	<% curr_product = v.product_id %>
	<tr>
		<td colspan="3">
		<h2><%= v.product.name %></h2>
		</td>
	</tr>
	<% end %>

	<% ugv = UserGroupsVariant.where(:user_group_id => @group).where(:variant_id => v).first%>
	<tr>
		<td>
			<%= variant_options(v) %> (<%= v.sku %>)
		</td>
		<td>
			Master Price <%= variant_options(v) %> (<%= v.price %>)
		<td>
			<input name="price[<%= @group.id %>][<%= v.id %>]" value="<%= ugv.price if ugv %>">
		</td>
	</tr>
	<% end %>
</table>
<%= form.submit %>
<% end %>


Add column for master price in group pricing page
Add column for master price in group pricing page
