ej2 / python-quickbooks

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

How to set CurrencyRef for Customer? #338

Closed raccoon-in-munich closed 8 months ago

raccoon-in-munich commented 10 months ago

I am trying to create a customer with Currency but the Customer Object does not have CurrencyRef field. According to the documentation, it needs to be set during the sparse update.

Is there a simple way to make a sparse update via the SDK?

Is there an example of how to set CurrencyRef on Customer?

raccoon-in-munich commented 10 months ago

hey, I solved the problem. It seems like CurrencyRef was assignable in Customer. But because it was not initialized in Customer my autocomplete did not work.

Is it intentional that CurrencyRef is not initialized with a default value or was it forgotten?

If you think it should be initialized I can create a PR to add it.

ej2 commented 8 months ago

It was forgotten. I will add it in the next release.

ej2 commented 8 months ago

Fixed in 0.9.7