Skip to content

Commit 2d8199f

Browse files
committed
Updated budget.
1 parent 842dbd3 commit 2d8199f

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

quickbooks/objects/budget.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from base import QuickbooksBaseObject, Ref, QuickbooksManagedObject
1+
from base import QuickbooksBaseObject, Ref, QuickbooksManagedObject, QuickbooksTransactionEntity
22

33

44
class BudgetDetail(QuickbooksBaseObject):
55
class_dict = {
66
"AccountRef": Ref,
7-
"CustomerRef": Ref
7+
"CustomerRef": Ref,
8+
"ClassRef": Ref,
9+
"DepartmentRef": Ref,
810
}
911

1012
def __init__(self):
@@ -14,20 +16,22 @@ def __init__(self):
1416

1517
self.AccountRef = None
1618
self.CustomerRef = None
19+
self.ClassRef = None
20+
self.DepartmentRef = None
1721

1822
def __unicode__(self):
1923
return str(self.Amount)
2024

2125

22-
class Budget(QuickbooksManagedObject):
26+
class Budget(QuickbooksManagedObject, QuickbooksTransactionEntity):
2327
"""
2428
QBO definition: The Budget endpoint allows you to retrieve the current state of budgets already set up in the user's
2529
company file. A budget allows for an amount to be assigned on a monthly, quarterly, or annual basis for a specific
2630
account or customer and are created to give a business measurable expense goals. This amount represents how much
2731
should be spent against that account or customer in the give time period.
2832
"""
2933

30-
class_dict = {
34+
list_dict = {
3135
"BudgetDetail": BudgetDetail,
3236
}
3337

@@ -42,7 +46,7 @@ def __init__(self):
4246
self.BudgetEntryType = ""
4347
self.Active = True
4448

45-
self.BudgetDetail = None
49+
self.BudgetDetail = []
4650

4751
def __unicode__(self):
4852
return self.Name

0 commit comments

Comments
 (0)