<%= 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 %> <% @myAddAld = true @myPrintAld = true @myDeletAld = true @myEditAld = true %> <% if@retHead!=nil && @retHead.mcn_status=='C' %>
This Return MRN has been Cancelled
<% end %>
Ret. No. [*]
Ret. Date [*]
Supplier[*]
 
Prepared By
<% sitenames = '' %>
Remarks
<% if @retHead==nil %> <% end %>
 
 
 
 
<% if @mrnDetails!=nil %> <% i = 1 @tqnt = 0; @ttaxamnt = 0; @tnetamnt = 0; @tvalues = 0; @taval = 0; @tcashval = 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 @tx = mncdt.mcnd_tax_on ntx = 0 if @tx.to_f >0 ntx1 =(@tx.to_f*mncdt.mcnd_value.to_f)/100 ntx = mncdt.mcnd_value.to_f-ntx1.to_f @tcashval +=@tcashval.to_f+ntx.to_f end %> <% i +=1 end %> <% else %> <% end %>
Sl.No Item Code Description MRN No MRN Date Return Qty Unit Price Value Tax % Tax Amnt Net Amount Remark
 <%=i%> 
Please select MRN for return receive material.

Total Quantity <% if @tqnt %><%=@tqnt%><% end %>
Total Value <% if @tvalues %><%=("%.2f" % @tvalues)%><% end %>
Total Tax Amount <% if @ttaxamnt %><%=("%.2f" % @ttaxamnt)%><% end %>
Net Amount <% if @ttaxamnt %><%=("%.2f" % @tnetamnt)%><% end %>
 
<% isblock = "save.png" if @pathsMrn!=nil isblock="update.png" end iscancelled = ""; if @retHead!=nil && @retHead.mcn_status=='C' iscancelled = "hidden"; end %> <% if session[:autherizedUserType] !='ofcvw' %>
<% if @isCancelPath!=nil %> <% else %> <% end %>
<% end %>
<% end %>
<%=render 'layouts/common/select_sitewise_mrn'%> <%=render 'layouts/common/message_common'%>