Closed bseib closed 1 year ago
Does anyone know how to invoke the code generation from the Finance.xsd
file? I don't understand why the Received
field isn't being generated...
/cc @sujitharamadass @diana-derose
/cc @fjolin-intuit @shweta-intuitdev @nimisha84
@bseib Will look into the issue and update you
@bseib Can you please check the minorVersion you are using? To get the "Received" attribute, you should be using minorverison 68
We are able to get the Received attribute via SDK 6.2.4 version Received attribute is returned in the response only for Closed Purchase Orders. The behaviour is the same in API explorer as well as in SDK.
Thank you @sujitharamadass for investigating this. I checked my lib version, and it was okay. But you got me to realize what was going on. My problem was that the received
field does not exist down in the ItemBasedExpenseLine
:
It lives one level higher, directly in the Line
object (which should have been evident to me in the JSON):
The confusion began because the Received
field is completely absent from the generated docs:
Maybe because Line
is a list it is treated differently, so somehow the generator doesn't output its fields to the docs...?? There are other fields that belong to Line
that should be documented too, and they are all missing here in the docs.
I will open a new issue regarding the missing fields in the docs.
I have opened #207 to fix the missing documentation.
Using the QBO API, when you query for a
PurchaseOrder
, the JSON for its line items looks like this:This looks correct for item-based line item details. However, the class
com.intuit.ipp.data.PurchaseOrder
does not have theReceived
field, so the amount received cannot be read.I did find the
Received
field in theFinance.xsd
file, so I'm not sure why it is not being generated.My initial post about this bug: https://help.developer.intuit.com/s/question/0D54R00009wbSzdSAE/where-is-the-receivedquantity-field-for-a-purchase-order-line-item