Skip to content

Commit 54dfba3

Browse files
committed
0.9.7 changes
1 parent 73edf4d commit 54dfba3

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pytest-cov = "*"
1111

1212
[packages]
1313
urllib3 = ">=2.1.0"
14-
intuit-oauth = "==1.2.4"
14+
intuit-oauth = "==1.2.5"
1515
requests = ">=2.31.0"
1616
simplejson = ">=3.19.1"
1717
requests_oauthlib = ">=1.3.1"

quickbooks/objects/companycurrency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def to_ref(self):
3535

3636
ref.name = self.Name
3737
ref.type = self.qbo_object_name
38-
ref.value = self.Id
38+
ref.value = self.Code
3939

4040
return ref

quickbooks/objects/customer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def __init__(self):
7171
self.PaymentMethodRef = None
7272
self.ParentRef = None
7373
self.ARAccountRef = None
74+
self.CurrencyRef = None
7475

7576
def __str__(self):
7677
return self.DisplayName

tests/unit/objects/test_companycurrency.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ def test_unicode(self):
1313
def test_to_ref(self):
1414
company_currency = CompanyCurrency()
1515
company_currency.Name = "test"
16+
company_currency.Code = "USD"
1617
company_currency.Id = 23
1718

1819
ref = company_currency.to_ref()
1920

2021
self.assertEqual(ref.name, "test")
2122
self.assertEqual(ref.type, "CompanyCurrency")
22-
self.assertEqual(ref.value, 23)
23+
self.assertEqual(ref.value, "USD")
2324

0 commit comments

Comments
 (0)