我需要通过 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 退回发票?
最佳答案
好的..我将回答我自己的问题,并附上一个链接,以帮助其他人遇到类似的问题。查看 Intuit 提供的高级 SQL 查询页面:
https://developer.intuit.com/blog/2014/03/20/advanced-sql-queries
invoices = service.query("Select * From Invoice Where CustomerRef = '75'")
关于ruby-on-rails - 使用 Quickbooks ruby gem 如何按 customer_ref 返回发票?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28093761/