CORPORATION: Use accounting methods for all funds transactions (#949)

This commit is contained in:
Jesse Clark
2023-12-07 18:22:21 -08:00
committed by GitHub
parent b114fb9eed
commit 902306530c
12 changed files with 93 additions and 64 deletions
+30
View File
@@ -0,0 +1,30 @@
// Funds transactions which affect valuation directly and should not be included in earnings projections.
// This includes capital expenditures (which may be recoupable), time-limited actions, and transfers to/from other game mechanics.
const FundsSourceLongTerm = [
"product development",
"division",
"office",
"warehouse",
"upgrades",
"bribery",
"public equity",
"private equity",
"hacknet",
"force majeure",
] as const;
// Funds transactions which should be included in earnings projections for valuation.
// This includes all automatic or indefinetly-repeatable income and operating expenses.
type FundsSourceShortTerm =
| "operating expenses"
| "operating revenue"
| "dividends"
| "tea"
| "parties"
| "advert"
| "materials"
| "glitch in reality";
export type FundsSource = (typeof FundsSourceLongTerm)[number] | FundsSourceShortTerm;
export const LongTermFundsSources = new Set<FundsSource>(FundsSourceLongTerm);