Skip to content

Commit

Permalink
0.9.7 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Mar 12, 2024
1 parent 73edf4d commit 54dfba3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pytest-cov = "*"

[packages]
urllib3 = ">=2.1.0"
intuit-oauth = "==1.2.4"
intuit-oauth = "==1.2.5"
requests = ">=2.31.0"
simplejson = ">=3.19.1"
requests_oauthlib = ">=1.3.1"
2 changes: 1 addition & 1 deletion quickbooks/objects/companycurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def to_ref(self):

ref.name = self.Name
ref.type = self.qbo_object_name
ref.value = self.Id
ref.value = self.Code

return ref
1 change: 1 addition & 0 deletions quickbooks/objects/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def __init__(self):
self.PaymentMethodRef = None
self.ParentRef = None
self.ARAccountRef = None
self.CurrencyRef = None

def __str__(self):
return self.DisplayName
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/objects/test_companycurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ def test_unicode(self):
def test_to_ref(self):
company_currency = CompanyCurrency()
company_currency.Name = "test"
company_currency.Code = "USD"
company_currency.Id = 23

ref = company_currency.to_ref()

self.assertEqual(ref.name, "test")
self.assertEqual(ref.type, "CompanyCurrency")
self.assertEqual(ref.value, 23)
self.assertEqual(ref.value, "USD")

0 comments on commit 54dfba3

Please sign in to comment.