UNPKG

@accounter/server

Version:

8 lines (7 loc) 483 B
import type { IGetAllFinancialEntitiesResult } from '../../financial-entities/types'; import type { SingleSidedLedgerRecord } from '../../../__generated__/types.js'; export declare function sortEntityRecordsAndAddBalance(openingBalance: number, records: (Omit<SingleSidedLedgerRecord, 'balance' | 'counterParty'> & { counterParty?: IGetAllFinancialEntitiesResult; })[]): (Omit<SingleSidedLedgerRecord, 'counterParty'> & { counterParty?: IGetAllFinancialEntitiesResult; })[];