ej2 / python-quickbooks

A Python library for accessing the Quickbooks API.
MIT License
407 stars 195 forks source link

SalesItemLineDetail.ServiceDate populates with undesired value #357

Open EgorChernik opened 6 months ago

EgorChernik commented 6 months ago

I faced an unexpected behavior: Invoice.Line[0..n].SalesItemLineDetail.ServiceDate obtains weird value "9999-12-31"

I'm using version 0.9.7 When I create an invoice using this library I don't specify any value in ServiceDate in my Line items. And it creates without any issue and shows invoice in UI correctly

Magic happens when I update something (in my particular case Invoice.TxnTaxDetail.TxnTaxCodeRef.value) It populates ServiceDate under the hood in all SalesItemLineDetail lines which I think is incorrect.

ej2 commented 4 months ago

Can you try updating the Invoice.TxnTaxDetail.TxnTaxCodeRef.value through the API Explorer and see if it also populates the ServiceDate with "9999-12-31"?

Also, could you post example to reproduce the error?