%
i = 1
if @mtrldtl.length>0
@mtrldtl.each do |items|
# ebmtr = (( items.prl_length.to_f+items.prl_width.to_f )*2).to_f/1000
# totalebmrt = currency_formatted(ebmtr).to_f*items.prl_item_pices.to_f
# totlrate = currency_formatted(items.prl_ebrate).to_f* totalebmrt.to_f
%>
<%=i%> |
<%=items.prl_specification%> |
<%=items.prl_item_code%> |
<%=items.prl_item_name%> |
<%=items.prl_uom%> |
<%=items.prl_cat_brand%> |
<%=currency_formatted(items.prl_length)%> |
<%=currency_formatted(items.prl_width)%> |
<%=currency_formatted(items.prl_thick)%> |
<%=currency_formatted(items.prl_item_pices)%> |
<%=currency_formatted(items.prl_rate)%> |
<%=currency_formatted(items.prl_total)%> |
<%=currency_formatted(items.prl_eb)%> |
<%=currency_formatted(items.prl_totaleb)%> |
<%=currency_formatted(items.prl_ebrate)%> |
<%=currency_formatted(items.prl_totalebrate)%> |
<%=currency_formatted(items.prl_totalcost)%> |
<%=items.prl_remark%> |
|
|
|
|
<%
i+=1
end
else
%>