@cubedelement.com/realty-investor-timeline
@cubedelement.com/realty-investor-timeline / ledger/ledger-collection / LedgerCollection
Defined in: ledger/ledger-collection.ts:82
new LedgerCollection():
LedgerCollection
Defined in: ledger/ledger-collection.ts:95
add(
item
):void
Defined in: ledger/ledger-collection.ts:125
LedgerItem |
Iterable <LedgerItem > |
void
clone():
ILedgerCollection
Defined in: ledger/ledger-collection.ts:368
filter(
pred
?):LedgerItem
[]
Defined in: ledger/ledger-collection.ts:99
getAvailableSavings(
date
,properties
,minMonthsRequired
):number
Defined in: ledger/ledger-collection.ts:346
should be the total balance - savings for single family
Date
number
= 6
number
ILedgerCollection
.getAvailableSavings
getAverageByType(
collection
,type
):number
Defined in: ledger/ledger-collection.ts:176
number
getBalance(
date
?):number
Defined in: ledger/ledger-collection.ts:115
the total balance in the ledger collection
Date
number
getCashFlowMonth(
date
?):number
Defined in: ledger/ledger-collection.ts:215
Date
number
ILedgerCollection
.getCashFlowMonth
getCashFlowMonthCollection(
year
?):number
[]
Defined in: ledger/ledger-collection.ts:180
used to get the cashFlow of all 12 months
number
number
[]
ILedgerCollection
.getCashFlowMonthCollection
getCashFlowYearAverage(
date
?):number
Defined in: ledger/ledger-collection.ts:197
used to get the average cash flow for the year.
Date
number
ILedgerCollection
.getCashFlowYearAverage
getLastLedgerMonth():
LedgerItem
[]
Defined in: ledger/ledger-collection.ts:358
ILedgerCollection
.getLastLedgerMonth
getLatestLedgerItem():
LedgerItem
Defined in: ledger/ledger-collection.ts:350
ILedgerCollection
.getLatestLedgerItem
getMinimumSavings(
properties
,date
,minMonthsRequired
):number
Defined in: ledger/ledger-collection.ts:146
This method gets the total of savings needed for all properties by x amount of months.
Date
number
= 6
number
Example, you typically need 6 months of month per single family home, so if you had 3 homes at 6 months and mortgage was $1000. It would be doing the following: `getMinimumSavings = 3 (SF) * $1000 (mort) * 6 (months) = $18,000`
totals all properties getExpensesByDate * amount needed to save by month, so properties[].getExpensesByDate() * minMonthsRequired.
ILedgerCollection
.getMinimumSavings
getSummariesAnnual(
year
?):ILedgerSummary
[]
Defined in: ledger/ledger-collection.ts:299
number
ILedgerCollection
.getSummariesAnnual
getSummaryAnnual(
year
?):ILedgerSummary
Defined in: ledger/ledger-collection.ts:273
number
ILedgerCollection
.getSummaryAnnual
getSummaryMonth(
date
):ILedgerSummary
Defined in: ledger/ledger-collection.ts:233
Date
ILedgerCollection
.getSummaryMonth
hasMinimumSavings(
properties
,date
,minMonthsRequired
):boolean
Defined in: ledger/ledger-collection.ts:172
determines if there is enough money in the account while forcing a hold on the getMinimumSavings amount.
Date
number
= 6
boolean
hasMinimumSavings = getBalance >= getMinimumSavings
ILedgerCollection
.hasMinimumSavings
isEmpty():
boolean
Defined in: ledger/ledger-collection.ts:132
is the collection empty?
boolean