File tree 5 files changed +18
-3
lines changed
5 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
+ * 0.9.7 (May 20, 2024)
4
+ * Added ItemAccountRef to SalesItemLineDetail
5
+ * Updated from_json example in readme
6
+
3
7
* 0.9.7 (March 12, 2024)
4
8
* Update intuit-oauth dependency
5
9
* Updated CompanyCurrency to ref to use Code instead of Id
Original file line number Diff line number Diff line change @@ -277,10 +277,10 @@ Converting an object to JSON data:
277
277
278
278
Loading JSON data into a quickbooks object:
279
279
280
- account = Account()
281
- account.from_json(
280
+ account = Account.from_json(
282
281
{
283
282
"AccountType": "Accounts Receivable",
283
+ "AcctNum": "123123",
284
284
"Name": "MyJobs"
285
285
}
286
286
)
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ def __init__(self):
102
102
class SalesItemLineDetail (QuickbooksBaseObject ):
103
103
class_dict = {
104
104
"ItemRef" : Ref ,
105
+ "ItemAccountRef" : Ref ,
105
106
"ClassRef" : Ref ,
106
107
"TaxCodeRef" : Ref ,
107
108
"PriceLevelRef" : Ref ,
@@ -117,6 +118,7 @@ def __init__(self):
117
118
118
119
self .MarkupInfo = None
119
120
self .ItemRef = None
121
+ self .ItemAccountRef = None
120
122
self .ClassRef = None
121
123
self .TaxCodeRef = None
122
124
self .PriceLevelRef = None
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def read(*parts):
10
10
return fp .read ()
11
11
12
12
13
- VERSION = (0 , 9 , 7 )
13
+ VERSION = (0 , 9 , 8 )
14
14
version = '.' .join (map (str , VERSION ))
15
15
16
16
setup (
Original file line number Diff line number Diff line change @@ -32,3 +32,12 @@ def test_update(self):
32
32
33
33
query_account = Account .get (account .Id , qb = self .qb_client )
34
34
self .assertEqual (query_account .Name , "Updated Name {0}" .format (self .account_number ))
35
+
36
+ def test_create_using_from_json (self ):
37
+ account = Account .from_json ({
38
+ "AcctNum" : self .account_number ,
39
+ "Name" : self .name ,
40
+ "AccountSubType" : "CashOnHand"
41
+ })
42
+
43
+ account .save (qb = self .qb_client )
You can’t perform that action at this time.
0 commit comments