1- from base import QuickbooksBaseObject , Ref , QuickbooksManagedObject , QuickbooksTransactionEntity , LinkedTxnMixin
1+ from base import QuickbooksBaseObject , Ref , QuickbooksManagedObject , QuickbooksTransactionEntity , \
2+ LinkedTxnMixin
23from tax import TxnTaxDetail
3-
4-
5- class Entity (QuickbooksBaseObject ):
6- class_dict = {
7- "EntityRef" : Ref
8- }
9-
10- def __init__ (self ):
11- super (Entity , self ).__init__ ()
12- self .Type = ""
13- self .EntityRef = None
4+ from detailline import DetailLine
145
156
167class JournalEntryLineDetail (QuickbooksBaseObject ):
178 class_dict = {
18- "AccountRef" : Ref ,
199 "Entity" : Ref
2010 }
2111
2212 def __init__ (self ):
2313 super (JournalEntryLineDetail , self ).__init__ ()
2414 self .PostingType = ""
15+ self .TaxApplicableOn = ""
16+ self .Type = ""
17+ self .TaxAmount = 0
18+ self .BillableStatus = ""
19+
2520 self .Entity = None
21+ self .EntityRef = None
2622 self .AccountRef = None
27-
28- def __unicode__ ( self ):
29- return self .PostingType
23+ self . ClassRef = None
24+ self . DepartmentRef = None
25+ self .TaxCodeRef = None
3026
3127
32- class JournalEntryLine (QuickbooksBaseObject ):
28+ class JournalEntryLine (DetailLine ):
3329 class_dict = {
3430 "JournalEntryLineDetail" : JournalEntryLineDetail
3531 }
3632
3733 def __init__ (self ):
3834 super (JournalEntryLine , self ).__init__ ()
39- self .Description = ""
40- self .Amount = 0
41- self .Id = 0
42- self .LineNum = 0
4335 self .DetailType = "JournalEntryLineDetail"
4436 self .JournalEntryLineDetail = None
4537
46- def __unicode__ (self ):
47- return str (self .Amount )
38+
39+ class DescriptionLineDetail (QuickbooksBaseObject ):
40+ class_dict = {
41+ "TaxCodeRef" : Ref
42+ }
43+
44+ def __init__ (self ):
45+ super (DescriptionLineDetail , self ).__init__ ()
46+ self .ServiceDate = ""
47+
48+
49+ class DescriptionOnlyLine (DetailLine ):
50+ class_dict = {
51+ "DescriptionLineDetail" : DescriptionLineDetail
52+ }
53+
54+ def __init__ (self ):
55+ super (DescriptionOnlyLine , self ).__init__ ()
56+ self .DetailType = "DescriptionOnly"
4857
4958
5059class JournalEntry (QuickbooksManagedObject , QuickbooksTransactionEntity , LinkedTxnMixin ):
@@ -59,7 +68,8 @@ class JournalEntry(QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedT
5968 """
6069
6170 class_dict = {
62- "TxnTaxDetail" : TxnTaxDetail
71+ "TxnTaxDetail" : TxnTaxDetail ,
72+ "CurrencyRef" : Ref ,
6373 }
6474
6575 list_dict = {
@@ -72,10 +82,15 @@ def __init__(self):
7282 super (JournalEntry , self ).__init__ ()
7383 self .Adjustment = False
7484 self .TxnDate = ""
85+ self .TxnSource = ""
7586 self .DocNumber = ""
87+ self .PrivateNote = ""
7688 self .TotalAmt = 0
89+ self .ExchangeRate = 1
7790 self .Line = []
7891 self .TxnTaxDetail = None
7992
93+ self .CurrencyRef = None
94+
8095 def __unicode__ (self ):
8196 return str (self .TotalAmt )
0 commit comments