Displaying 2 results from an estimated 2 matches for "invoice_d".
Did you mean:
invoiced
2006 Sep 28
3
A few questions about numbers and dates
...ointers appreciated,
Kind Regards
Neville
==========================
require ''rubygems''
require ''ferret''
require ''date''
p Ferret::VERSION
@dir = Ferret::Store::RAMDirectory.new
@index = Ferret::Index::Index.new(:dir => @dir)
invoice = {:invoice_date => Date.new(2006,9,20), :invoice_value =>
44.50, :invoice_no => 45656, :invoice_to => ''Nev''}
@index << invoice
doc = @index[0].load
doc.fields.each do |f|
p f
p doc[f].class
p doc[f]
end
==========================
>ruby test_format.rb
"0.10....
2005 Oct 14
0
Adding extra field in form using ajax causes extra field to be overwritten, any way around that.
...h and
submit to the form, the line_item entries all have the same field name so
they get overwritten. I''m not sure how to get around that.
Here is my _form.rhtml:
<%= error_messages_for ''invoice'' %>
<!--[form:invoice]-->
<p><label for="invoice_invoice_date">Invoice date</label><br/>
<%= datetime_select ''invoice'', ''invoice_date'' %></p>
<table border=1>
<tr>
<td>Description</td><td>Price</td>
</tr>
</table>
<table border=1><t...