-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using like operator for queries has issues #46
Comments
qbo.findAccounts([
{
field: 'Name',
value: '%Prepaid Inventory',
operator: 'LIKE'
}
], function(e, data) {
console.log(JSON.stringify(data, null,2))
done()
}) doesn't give me any errors. Regarding L1925 of index.js, Sorry, I'm not sure what problem you're running into here. |
Thank you so much for the reply. Let me explain my issue. what happened above, among other things, is that each space is replaced with %20, and then %20 is replaced with %2520. I don't think that this is your code doing it. Does this mean that I cannot submit a LIKE with two % signs? Thanks! |
I would delete node_modules/node-quickbooks and then |
Thank you for your time! That did it. My bad, I should have updated first. |
In order to use like with % such as '%prepaid inventory' I have had to pass it as '%25prepaid inventory' and on line 1925 of index.js I've had to comment out:
url.replace(/%/g, '%25')
this section only changes the first occurrence anyway, so it is ineffective at replacing all characters.
I am using the like operator as follows:
accountsQuery = '%25Prepaid Inventory'
qbo.findAccounts([{field: 'Name', value: accountsQuery, operator: 'LIKE'}], function(err, account)
The text was updated successfully, but these errors were encountered: