add format version (data type)
This commit is contained in:
parent
7d2777870e
commit
0070805bbb
@ -291,7 +291,7 @@ def get_header(filters, csv_class):
|
|||||||
csv_class.DATA_CATEGORY,
|
csv_class.DATA_CATEGORY,
|
||||||
csv_class.FORMAT_NAME,
|
csv_class.FORMAT_NAME,
|
||||||
# E = Format version (regarding format name)
|
# E = Format version (regarding format name)
|
||||||
"",
|
csv_class.FORMAT_VERSION,
|
||||||
# F = Generated on
|
# F = Generated on
|
||||||
datetime.datetime.now().strftime("%Y%m%d"),
|
datetime.datetime.now().strftime("%Y%m%d"),
|
||||||
# G = Imported on -- stays empty
|
# G = Imported on -- stays empty
|
||||||
|
@ -499,14 +499,17 @@ class FormatName():
|
|||||||
class Transactions():
|
class Transactions():
|
||||||
DATA_CATEGORY = DataCategory.TRANSACTIONS
|
DATA_CATEGORY = DataCategory.TRANSACTIONS
|
||||||
FORMAT_NAME = FormatName.TRANSACTIONS
|
FORMAT_NAME = FormatName.TRANSACTIONS
|
||||||
|
FORMAT_VERSION = "9"
|
||||||
COLUMNS = TRANSACTION_COLUMNS
|
COLUMNS = TRANSACTION_COLUMNS
|
||||||
|
|
||||||
class DebtorsCreditors():
|
class DebtorsCreditors():
|
||||||
DATA_CATEGORY = DataCategory.DEBTORS_CREDITORS
|
DATA_CATEGORY = DataCategory.DEBTORS_CREDITORS
|
||||||
FORMAT_NAME = FormatName.DEBTORS_CREDITORS
|
FORMAT_NAME = FormatName.DEBTORS_CREDITORS
|
||||||
|
FORMAT_VERSION = "5"
|
||||||
COLUMNS = DEBTOR_CREDITOR_COLUMNS
|
COLUMNS = DEBTOR_CREDITOR_COLUMNS
|
||||||
|
|
||||||
class AccountNames():
|
class AccountNames():
|
||||||
DATA_CATEGORY = DataCategory.ACCOUNT_NAMES
|
DATA_CATEGORY = DataCategory.ACCOUNT_NAMES
|
||||||
FORMAT_NAME = FormatName.ACCOUNT_NAMES
|
FORMAT_NAME = FormatName.ACCOUNT_NAMES
|
||||||
|
FORMAT_VERSION = "2"
|
||||||
COLUMNS = ACCOUNT_NAME_COLUMNS
|
COLUMNS = ACCOUNT_NAME_COLUMNS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user