CapBank: More help for date fields, introduce vdate
This commit is contained in:
parent
9d6c27c3ea
commit
c47548caa2
1 changed files with 5 additions and 4 deletions
|
|
@ -148,13 +148,14 @@ class Transaction(CapBaseObject):
|
||||||
TYPE_LOAN_PAYMENT = 8
|
TYPE_LOAN_PAYMENT = 8
|
||||||
TYPE_BANK = 9
|
TYPE_BANK = 9
|
||||||
|
|
||||||
date = DateField('Debit date')
|
date = DateField('Debit date on the bank statement')
|
||||||
rdate = DateField('Real date, when the payment has been made')
|
rdate = DateField('Real date, when the payment has been made; usually extracted from the label or from credit card info')
|
||||||
|
vdate = DateField('Validity date, or accounting date; usually for professional accounts')
|
||||||
type = IntField('Type of transaction, use TYPE_* constants', default=TYPE_UNKNOWN)
|
type = IntField('Type of transaction, use TYPE_* constants', default=TYPE_UNKNOWN)
|
||||||
raw = StringField('Raw label of the transaction')
|
raw = StringField('Raw label of the transaction')
|
||||||
category = StringField('Category of transaction')
|
category = StringField('Category of the transaction')
|
||||||
label = StringField('Pretty label')
|
label = StringField('Pretty label')
|
||||||
amount = DecimalField('Amount of transaction')
|
amount = DecimalField('Amount of the transaction')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
label = self.label.encode('utf-8') if self.label else self.label
|
label = self.label.encode('utf-8') if self.label else self.label
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue