使用Quickbooks ruby​​ gem如何通过customer_ref返回发票?

时间:2015-01-22 16:24:53

标签: ruby-on-rails ruby gem quickbooks

我需要通过customer_ref查询发票。我试过了:

invoices = service.query("Select * From Invoice Where customer_ref = 75")

但那只是回归:

Quickbooks::IntuitRequestException: Error parsing query:
QueryParserError: Encountered " <INTEGER> "75 "" at line 1, column 44.
Was expecting one of:
"false" ...
"true" ...

如何通过customer_ref返回发票?

1 个答案:

答案 0 :(得分:1)

好的..如果他们遇到类似的问题,我会用一个帮助他人的链接来回答我自己的问题。查看Intuit提供的Advanced SQL Query页面:

https://developer.intuit.com/blog/2014/03/20/advanced-sql-queries

invoices = service.query("Select * From Invoice Where CustomerRef = '75'")