app: lists on meta tables, schema-qualified SQL, typed columns
- lists read/write real lists.* tables via meta.tables/meta.columns and the SECURITY DEFINER meta functions; typed extra columns in the item forms - old numeric list URLs 308-redirect to the slug - include_recurring is boolean, osu accuracy/pp/rate numeric - raw SQL qualified with the new schemas
This commit is contained in:
@@ -101,7 +101,7 @@ type ProjectionSettings = {
|
||||
annualReturnPercent: string | number;
|
||||
contributionMode: string;
|
||||
fixedMonthlyCents: number;
|
||||
includeRecurring: number;
|
||||
includeRecurring: boolean;
|
||||
endDate?: string | null;
|
||||
};
|
||||
|
||||
@@ -160,7 +160,7 @@ export function wealthProjection(
|
||||
if (entry.accountId === validInvestmentId) indexBalance += entry.amountCents;
|
||||
} else spendable += entry.amountCents;
|
||||
}
|
||||
if (settings?.includeRecurring !== 0 && index > 0) {
|
||||
if (settings?.includeRecurring !== false && index > 0) {
|
||||
for (const item of recurring) {
|
||||
if ((item.startsOn && item.startsOn > date) || (item.endsOn && item.endsOn < first))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user