Browse Source

Fix interest of account for activities with quantity other than one

pull/7989/head
Thomas Kaul 2 weeks ago
parent
commit
734b4a444f
  1. 6
      apps/api/src/app/portfolio/portfolio.service.spec.ts

6
apps/api/src/app/portfolio/portfolio.service.spec.ts

@ -277,11 +277,11 @@ describe('PortfolioService', () => {
{ {
currency: 'USD', currency: 'USD',
date: new Date('2024-01-03'), date: new Date('2024-01-03'),
quantity: 2, quantity: 3,
SymbolProfile: { currency: 'USD' }, SymbolProfile: { currency: 'USD' },
tags: [], tags: [],
type: 'INTEREST', type: 'INTEREST',
unitPrice: 10 unitPrice: 5
} }
], ],
balance: 0, balance: 0,
@ -317,7 +317,7 @@ describe('PortfolioService', () => {
expect(account).toMatchObject({ expect(account).toMatchObject({
dividendInBaseCurrency: 20, dividendInBaseCurrency: 20,
interestInBaseCurrency: 20 interestInBaseCurrency: 15
}); });
}); });
}); });

Loading…
Cancel
Save