@accounter/server
Version:
Accounter GraphQL server
6 lines (5 loc) • 798 B
TypeScript
import { Currency } from '../../../shared/enums.js';
import type { BusinessTransactionProto, RawBusinessTransactionsSum } from '../../../shared/types/index.js';
import type { IGetLedgerRecordsByChargesIdsResult } from '../../ledger/types.js';
export declare function handleBusinessLedgerRecord(rawRes: Record<string, RawBusinessTransactionsSum>, businessId: string, currency: Currency, isCredit: boolean, stringifiedAmount: string | null, stringifiedForeignAmount: string | null, defaultLocalCurrency: Currency): void;
export declare function handleBusinessTransaction(record: IGetLedgerRecordsByChargesIdsResult, businessId: string, counterpartyId: string | null | undefined, isCredit: boolean, stringifiedAmount: string | null, stringifiedForeignAmount: string | null): BusinessTransactionProto;