File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class BillLine(QuickbooksBaseObject):
2424 def __init__ (self ):
2525 super (BillLine , self ).__init__ ()
2626
27+ self .LineNum = 0
2728 self .Description = ""
2829 self .Amount = ""
2930 self .DetailType = ""
Original file line number Diff line number Diff line change @@ -63,3 +63,12 @@ def __init__(self):
6363
6464 def __unicode__ (self ):
6565 return self .DisplayName
66+
67+ def to_ref (self ):
68+ ref = Ref ()
69+
70+ ref .name = self .DisplayName
71+ ref .type = self .qbo_object_name
72+ ref .value = self .Id
73+
74+ return ref
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class Invoice(QuickbooksManagedObject):
4949 class_dict = {
5050 "DepartmentRef" : Ref ,
5151 "CurrencyRef" : Ref ,
52+ "CustomerRef" : Ref ,
5253 "ClassRef" : Ref ,
5354 "SalesTermRef" : Ref ,
5455 "ShipMethodRef" : Ref ,
@@ -86,5 +87,7 @@ def __init__(self):
8687 self .BillAddr = None
8788 self .ShipAddr = None
8889 self .BillEmail = None
90+ self .CustomerRef = None
8991 self .CustomerMemo = None
92+
9093 self .CustomField = []
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class PaymentLine(QuickbooksBaseObject):
99 def __init__ (self ):
1010 super (PaymentLine , self ).__init__ ()
1111 self .Amount = 0
12+ self .LineNum = 0
13+ self .Description = ""
1214
1315
1416class Payment (QuickbooksManagedObject ):
Original file line number Diff line number Diff line change @@ -43,3 +43,12 @@ def __init__(self):
4343
4444 def __unicode__ (self ):
4545 return self .DisplayName
46+
47+ def to_ref (self ):
48+ ref = Ref ()
49+
50+ ref .name = self .DisplayName
51+ ref .type = self .qbo_object_name
52+ ref .value = self .Id
53+
54+ return ref
You can’t perform that action at this time.
0 commit comments