refactor!: support RUB only (WealthLedger/main#55) (#168)
This commit was merged in pull request #168.
This commit is contained in:
@@ -55,12 +55,12 @@ const position: Portfolio["positions"][number]
|
||||
};
|
||||
|
||||
const portfolio: Portfolio = {
|
||||
cashBalances: [],
|
||||
cash: { currency: "RUB", value: "0" },
|
||||
isStale: false,
|
||||
lastSuccessfulAt: "2026-08-15T12:00:00Z",
|
||||
positions: accounts.map(account => ({ ...position, account })),
|
||||
structure: { currencies: [], unvaluedCategories: [] },
|
||||
totalsByCurrency: [{ currency: "RUB", value: "1200" }],
|
||||
structure: { categories: [], hasNegativeValues: false, totalValue: "0", unvaluedCategories: [] },
|
||||
totals: { currency: "RUB", value: "1200" },
|
||||
};
|
||||
|
||||
const receipt: BrokerageOperation
|
||||
@@ -106,14 +106,11 @@ const analytics: IncomeAnalytics
|
||||
},
|
||||
],
|
||||
period: { from: "2026-08-01", to: "2026-08-31" },
|
||||
totalsByCurrency: [
|
||||
{
|
||||
coupon: { currency: "RUB", value: "2" },
|
||||
currency: "RUB",
|
||||
dividend: { currency: "RUB", value: "0" },
|
||||
total: { currency: "RUB", value: "2" },
|
||||
},
|
||||
],
|
||||
total: {
|
||||
coupon: { currency: "RUB", value: "2" },
|
||||
dividend: { currency: "RUB", value: "0" },
|
||||
total: { currency: "RUB", value: "2" },
|
||||
},
|
||||
};
|
||||
|
||||
const CurrentLocation: FC = () => {
|
||||
@@ -216,7 +213,7 @@ beforeEach(() => {
|
||||
type: "coupon",
|
||||
}),
|
||||
),
|
||||
incomeTotalsByCurrency: [],
|
||||
incomeTotal: { currency: "RUB", value: "0" },
|
||||
window: { from: "2026-09-01", to: "2026-10-01" },
|
||||
}),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user