ruckus / quickeebooks

ABANDONED !!!! Quickbooks + Ruby using the Quickbooks Online v2 Data Services REST API
MIT License
79 stars 67 forks source link

How to grep SalesTerm values from QBO to our application #110

Closed mrsowmya closed 11 years ago

mrsowmya commented 11 years ago

screenshot from 2013-10-21 15 27 50 screenshot from 2013-10-21 15 28 52

You have not defined Term model. please let me know how to grep terms values from QBO. now i can only grep sales_term_id but i want sales_term_name.

This feature is available in windows, please make it available for online also

xml_accessor :sales_term_name, :from => 'SalesTermName'

ruckus commented 11 years ago

I just released 0.1.22 which adds support for Online#SalesTerm.

You can fetch a list of sales terms by calling:

service = Quickeebooks::Online::Service::SalesTerm.new
service.access_token = token
service.realm_id = realm_id
results = service.list
mrsowmya commented 11 years ago

Thank you.

ruckus commented 11 years ago

This is an intermittent error we get from Intuit and has nothing to do with Quickeebooks. Handling it could be better - its been an ongoing conversation on an Issue thread.

On Oct 22, 2013, at 12:33 AM, mrsowmya notifications@github.com wrote:

upto this it is working sales_term.name = "net 1000" => "net 1000"

when i try to list or create it is giving following error service.create(sales_term)

Nokogiri::XML::XPath::SyntaxError: Undefined namespace prefix: //xmlns:FaultInfo/xmlns:Message from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.5.10/lib/nokogiri/xml/node.rb:159:in evaluate' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.5.10/lib/nokogiri/xml/node.rb:159:inblock in xpath' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.5.10/lib/nokogiri/xml/node.rb:150:in map' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.5.10/lib/nokogiri/xml/node.rb:150:inxpath' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/quickeebooks-0.1.22/lib/quickeebooks/online/service/service_base.rb:187:in parse_intuit_error' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/quickeebooks-0.1.22/lib/quickeebooks/online/service/service_base.rb:174:incheck_response' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/quickeebooks-0.1.22/lib/quickeebooks/online/service/service_base.rb:151:in do_http' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/quickeebooks-0.1.22/lib/quickeebooks/online/service/service_base.rb:132:indo_http_post' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/quickeebooks-0.1.22/lib/quickeebooks/common/service_crud.rb:6:in create' from (irb):13 from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.13/lib/rails/commands/console.rb:47:instart' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in start' from /home/rails/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.13/lib/rails/commands.rb:41:in' from script/rails:6:in require' from script/rails:6:in'

— Reply to this email directly or view it on GitHub.

ruckus commented 11 years ago

Were you able to get this going?

On Oct 22, 2013, at 4:37 AM, mrsowmya notifications@github.com wrote:

Thank you.

— Reply to this email directly or view it on GitHub.

mrsowmya commented 11 years ago

yes

On Tue, Oct 22, 2013 at 9:24 PM, Cody Caughlan notifications@github.comwrote:

Were you able to get this going?

On Oct 22, 2013, at 4:37 AM, mrsowmya notifications@github.com wrote:

Thank you.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/ruckus/quickeebooks/issues/110#issuecomment-26815853 .

Thanks :

Sowmya. M. R