search for: inv_numb

Displaying 3 results from an estimated 3 matches for "inv_numb".

Did you mean: inv_num
2006 Jan 03
4
Would someone like to tell me why this code will not solve my problem? (it''s short)
...mber. BUT, there is a unique case on the very first invoice produced because there is no earlier invoice number. My solution is as follows (and does not work) This is in the ''create'' controller if Invoice.find(:all) @temp = Invoice.find_by_sql("select max(inv_number) as inv_number from invoices where company_id = params [:company_id") @invoice.inv_number = @temp[0].inv_number +1 else @invoice.inv_number=1 end The error I am getting is NoMethodError in Invoices#create You have a nil object when...
2005 Dec 15
12
Adding multiple invoice items to an invoice on the same form
Hi Friends , Got a unique requirement .I am designing a invoice printing 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''
2005 Dec 23
0
adding items to a particular invoice on the same page
...gt; "bottom" ) %> New item text: <%= submit_tag "Add" %> <%= end_form_tag %> <form action="/ajax/save_items" method="post"> <ul id="my_list"> <input type="text" id="invoice_inv_number" name="invoice[inv_number]" > <li>Original item... please add more!</li> </ul> <%= submit_tag ''Update'' %> </form> </body> </html> Controller Ajax_controller.rb lass AjaxController < Application...