import type { DocumentWithPositions, DocumentWithPositionsPatch, HasVat } from '.'; import type { OptionalNullablePartial } from '../tools'; export type InvoiceMetaType = 'invoicein' | 'invoiceout'; export type InvoiceFields = { paymentPlannedMoment?: string; readonly payedSum: number; readonly shippedSum: number; }; export type Invoice = DocumentWithPositions & InvoiceFields & HasVat; export type InvoicePatch = DocumentWithPositionsPatch & OptionalNullablePartial> & Partial;