Displaying 2 results from an estimated 2 matches for "item_qty".
2005 Dec 15
12
Adding multiple invoice items to an invoice on the same form
...ow 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 ,
Thanx and regards,
Naroor Rathish,
www.naroor.blogspot.com
--
Posted via http://www.ruby-fo...
2005 Dec 20
0
Dynamic fields creation and accessing data
...s 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 the rhtml file I have added :
<%= form_remote_tag(:update => "my_list",
:url => { :action =>...