Add column and use instead of last transactions date
This commit is contained in:
1 parent
984a2aa296
commit
0201b368d4
8 files changed
+58
-19
No files matched your search
@@ -20,9 +20,12 @@ const OnBudgetAccountsBalance = computed(() => accountStore.OnBudgetAccountsBala
|
||||
const OffBudgetAccountsBalance = computed(() => accountStore.OffBudgetAccountsBalance);
|
||||
|
||||
function isRecentlyReconciled(account: Account) {
|
||||
if(!account.LastReconciled.Valid)
|
||||
return false;
|
||||
|
||||
const now = new Date().getTime();
|
||||
const recently = 7 * 24 * 60 * 60 * 1000;
|
||||
return new Date(now - recently).getTime() < account.LastReconciled.getTime();
|
||||
return new Date(now - recently).getTime() < account.LastReconciled.Time.getTime();
|
||||
}
|
||||
|
||||
function getAccountName(account: Account) {
|
||||
|
||||
Reference in new issue
Block a user