forked from routablehq/python-quickbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransfer.py
More file actions
30 lines (24 loc) · 891 Bytes
/
transfer.py
File metadata and controls
30 lines (24 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from six import python_2_unicode_compatible
from .base import Ref, QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin
from ..mixins import DeleteMixin
@python_2_unicode_compatible
class Transfer(DeleteMixin, QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin):
"""
QBO definition: A Transfer represents a transaction where funds are moved between two accounts from the
company's QuickBooks chart of accounts.
"""
class_dict = {
"FromAccountRef": Ref,
"ToAccountRef": Ref,
}
qbo_object_name = "Transfer"
def __init__(self):
super(Transfer, self).__init__()
self.Amount = 0
self.TxnDate = None
self.PrivateNote = None
self.TxnSource = None
self.FromAccountRef = None
self.ToAccountRef = None
def __str__(self):
return str(self.Amount)