node-quickbooks icon indicating copy to clipboard operation
node-quickbooks copied to clipboard

Add more information on the "void" methods

Open ejdaly opened this issue 5 years ago • 1 comments

voidInvoice() and voidPayment() are not documented yet: https://github.com/mcohen01/node-quickbooks/pull/134/commits/1a5a62a0e020c5cc3763225601fc838a6fe8ef75

There's also some useful info on voiding in this issue, that would be useful in the main readme: https://github.com/mcohen01/node-quickbooks/issues/43

Also, it seems "void" is an acceptable operation to provide to Batch Operations (which is useful..., but not documented).

For voiding payments using Batch Operations, it seems you can't use the "void" operation however. Instead you need to specify:

operation: "update"
optionsData: "void"

https://community-intuit.force.com/developer/s/question/0D50f00005E4WI6/how-do-i-void-payments-through-the-batch-endpoint-of-the-api

(I'm not sure if you want to handle that case within the library, or just document it..)

If I get time in the coming weeks - I'll try put together a PR for these documentation updates ... but at least they are visible here in the meantime.

ejdaly avatar Jan 23 '20 00:01 ejdaly

https://github.com/mcohen01/node-quickbooks/pull/202

ShrihariMohan avatar Dec 04 '22 15:12 ShrihariMohan