@accounter/server
Version:
Accounter GraphQL server
14 lines (13 loc) • 819 B
TypeScript
import type { Injector } from 'graphql-modules';
import type { QueryVatReportArgs, ResolversTypes } from '../../../__generated__/types.js';
export type GetVatRecordsOptions = {
/**
* Whether to compute the `missingInfo` / `differentMonthDoc` / `businessTrips`
* charge buckets. Building them runs `validateCharge` plus a business-trip
* load for every charge in the month — work that only the VAT report screen
* consumes. The ledger-validation, description-suggestion and PCN874 callers
* read only `income`/`expenses`, so they pass `false` to skip it entirely.
*/
includeChargeBuckets?: boolean;
};
export declare const getVatRecords: ({ filters }: Partial<QueryVatReportArgs>, injector: Injector, options?: GetVatRecordsOptions) => Promise<ResolversTypes["VatReportResult"]>;