<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= render "layouts/breadcrumbs" %> <%=form_tag({:action=>'create'} ,:multipart=>true,:id=>"myForms" ) do %> <% if @mrnDetails!=nil && @mrnDetails[0].mcn_status=='C' %>
This MRN is cancelled
<% end %>
MRN No.[*]
MRN Date [*]
GateEntry No.
GateEntry Date
Challan No.
Challan Date
Bill No.
Bill Date
Supplier[*]
purchase Type
Prepared By
Currency 
Ref. No.
Remarks
 
 
 
 
<% if @mrnDetails!=nil %> <% i = 1 k = 19 @tqnt = 0; @ttaxamnt = 0; @tnetamnt = 0; @tvalues = 0; @mrnDetails.each do |mncdt| @tqnt += mncdt.mcnd_accepted_qnty.to_i @ttaxamnt += mncdt.mcnd_tax_amount.to_f @tnetamnt += mncdt.mcnd_net_amount.to_f @tvalues += mncdt.mcnd_value.to_f %> <% k = k+i; %> <% i +=1 %> <% @cx = i %> <% end %> <% if @mrnDetails.length < 7 %> <% k = 19 i = @cx for i in @cx..7 do %> <% k = k+i; %> <% end %> <% end %> <% else %> <% k = 19 for i in 1..7 do %> <% k = k+i; %> <% k = k+6 %> <% end %> <% end %>
Sl.No Item Code Description UOM Challan Qty Qty Rcvd Qty Rjctd Qty Accptd Unit Price Value Tax % Tax Amnt Net Amount Remark
 <%=i%>  "/> "/> "/> "/>
 <%=i%> 
 <%=i%> 
Total Quantity
Total Value <% end %>"/>
Total Tax Amt <% end %>"/>
Net Amount <% end %>"/>
 
<% ck = k %>
<% if @isUpdateAlwd %> <% end %>
<% if @isCancelPath!=nil %> <% else %> <% end %>
<% end %>