Set proper type for mortgage accounts
This commit is contained in:
parent
8f105c5602
commit
01e55c3550
6
g2f.py
6
g2f.py
@ -374,10 +374,10 @@ class GnuCashToFireflyMigrator:
|
|||||||
# add required fields for liability accounts
|
# add required fields for liability accounts
|
||||||
elif firefly_type == "liability":
|
elif firefly_type == "liability":
|
||||||
# liability_type - mandatory when type is liability
|
# liability_type - mandatory when type is liability
|
||||||
if account.type in ["LOAN"] or "loan" in account.name.lower():
|
if "mortgage" in account.fullname.lower():
|
||||||
account_data["liability_type"] = "loan"
|
|
||||||
elif "mortgage" in account.fullname.lower():
|
|
||||||
account_data["liability_type"] = "mortgage"
|
account_data["liability_type"] = "mortgage"
|
||||||
|
elif account.type in ["LOAN"] or "loan" in account.name.lower():
|
||||||
|
account_data["liability_type"] = "loan"
|
||||||
else:
|
else:
|
||||||
account_data["liability_type"] = "debt" # default for credit cards, etc.
|
account_data["liability_type"] = "debt" # default for credit cards, etc.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user