UNPKG

@accounter/server

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