使用 Quickbooks ruby gem 如何 return 按 customer_ref 开具发票?
Using the Quickbooks ruby gem how do I return invoices by customer_ref?
我需要按customer_ref查询发票。我试过:
invoices = service.query("Select * From Invoice Where customer_ref = 75")
但那只是 returns:
Quickbooks::IntuitRequestException: Error parsing query:
QueryParserError: Encountered " <INTEGER> "75 "" at line 1, column 44.
Was expecting one of:
"false" ...
"true" ...
我如何 return 按 customer_ref 开具发票?
好的..我将用 link 来回答我自己的问题,以帮助其他人遇到类似的问题。查看 Intuit 提供的高级 SQL 查询页面:
https://developer.intuit.com/blog/2014/03/20/advanced-sql-queries
invoices = service.query("Select * From Invoice Where CustomerRef = '75'")
我需要按customer_ref查询发票。我试过:
invoices = service.query("Select * From Invoice Where customer_ref = 75")
但那只是 returns:
Quickbooks::IntuitRequestException: Error parsing query:
QueryParserError: Encountered " <INTEGER> "75 "" at line 1, column 44.
Was expecting one of:
"false" ...
"true" ...
我如何 return 按 customer_ref 开具发票?
好的..我将用 link 来回答我自己的问题,以帮助其他人遇到类似的问题。查看 Intuit 提供的高级 SQL 查询页面:
https://developer.intuit.com/blog/2014/03/20/advanced-sql-queries
invoices = service.query("Select * From Invoice Where CustomerRef = '75'")