Displaying 4 results from an estimated 4 matches for "item_price".
2005 Dec 15
12
Adding multiple invoice items to an invoice on the same form
...ing system
.So right now I have the NEW page for adding the invoice details to the
table .Now I have the requirement of adding Invoice Items In the same
form .I have added multiple text boxes to enter the values of the Items
using
<%= text_field ''invoiceitems[]'', ''item_price'' %>
<%= text_field ''invoiceitems[]'', ''item_qty'' %> etc.
How can I save the multiple items in the same form .I have to insert the
invoice details and the invoice items on the same button click.
Waiting for the comments and suggestions ,
Th...
2005 Dec 20
0
Dynamic fields creation and accessing data
Hi friends ,
I was trying this code and finding some errors.I am trying this to
implement dynamic creation of invoice items in invoices using AJAX
.Please go thru .
I added a partial ::
<% @invoiceitem = invoiceitem -%>
<%= text_field ''invoiceitem'', ''item_price'', ''index'' =>
invoiceitem_counter %>
<%= text_field ''invoiceitem'', ''item_qty'', ''index'' =>
invoiceitem_counter
%>
Where are we initialising the counter? Please tell how is the first line
working .
In t...
2012 Feb 21
0
nil can't be coerced into BigDecimal Options
....rb
<div class="cart_title" >Your Cart</div>
<table>
<% for item in @cart.line_items %>
<tr>
<td><%= item.quantity %>×</td>
<td><%= item.product.title %></td>
<td class="item_price" ><%= number_to_currency(item.total_price)
%></td>
</tr>
<% end %>
<tr class="total_line" >
<td colspan="2" >Total</td>
<td class="total_cell" ><%=
number_to_currency(@cart.total...
2011 Aug 02
1
NoMethodError in Store#index
...em.html.erb where
line #9 raised:
undefined method `title'' for nil:NilClass
Extracted source (around line #9):
6: <% end %>
8: <td><%= line_item.quantity %>×</td>
9: <td><%= line_item.product.title %></td>
10: <td class="item_price"><%=
number_to_currency(line_item.total_price) %></td>
11: </tr>
Trace of template inclusion: app/views/carts/_cart.html.erb,
app/views/layouts/application.html.erb
Rails.root: C:/rails/shop9
Application Trace | Framework Trace | Full Trace
app/views/line_items/_line_it...