search for: invoice_no

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

Did you mean: invoice_id
2006 May 19
7
AR transactions and isolation levels
...ow things really work. Anyway.. Consider this example code: Class Invoice < ActiveRecord::Base def self.create_new self.transaction do self.connection.execute("set transaction isolation level serializable, read write") last = Invoice.find(:first, :order => "invoice_no desc") invoice = Invoice.new invoice.invoice_no = last.invoice_no + 1 sleep(10) invoice.save! end end end ______ I couldn''t find an ''AR way'' to set the isolation level, thus drop down to execute(). Any better approaches? If i understan...
2006 Sep 28
3
A few questions about numbers and dates
...= 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.6" :invoice_date String "2006-09-20" :invoice_value Str...
2005 Jan 19
5
easing out of Excel
I know enough about R to be dangerous and our marketing people have asked me to "automate" some reporting. Data comes from an SQL source and graphs and various summaries are currently created manually in Excel. The raw information is invoicing records and the reporting is basically summaries by customer, region, product line etc. With function such as aggregate(), hist() and pareto()