open-nav
    Preparing search index...

    Interface BuildLine

    interface BuildLine {
        additionalData?: AdditionalDataType[];
        advance?:
            | boolean
            | {
                exchangeRate?: string
                | number;
                originalInvoice: string;
                paymentDate: string;
            };
        description: string;
        nature?: "OTHER"
        | "PRODUCT"
        | "SERVICE";
        quantity: string | number;
        unit?: UnitOfMeasureType;
        unitPrice: string | number;
        vatPercentage: string | number;
    }
    Index
    additionalData?: AdditionalDataType[]

    Conventionally named extra data for this line (additionalLineData). NAV has no free-text line note; a "Tétel megjegyzés" must be a structured field whose dataName follows NAV's [A-Z][0-9]{5}_... convention. Validated by validateInvoice.

    advance?:
        | boolean
        | {
            exchangeRate?: string
            | number;
            originalInvoice: string;
            paymentDate: string;
        }

    Mark this line as an advance (előleg) charge (advanceData).

    • true reports the advance itself — a line of an advance invoice (előlegszámla). NAV's advance-invoice lines carry only the net amount and the VAT rate; the builder omits lineVatData/lineGrossAmountData for these lines (the summary still derives the VAT from the rate).
    • An object additionally references the advance invoice that already reported the payment — the advance-deduction line of a final invoice (végszámla). Such a line's amounts are the caller's to make negative.

    Type Declaration

    • boolean
    • { exchangeRate?: string | number; originalInvoice: string; paymentDate: string }
      • OptionalexchangeRate?: string | number

        Exchange rate applied to the advance. Defaults to the invoice rate.

      • originalInvoice: string

        Number of the advance invoice that reported the payment.

      • paymentDate: string

        Date the advance was paid, yyyy-mm-dd.

    description: string
    nature?: "OTHER" | "PRODUCT" | "SERVICE"

    Defaults to PRODUCT.

    quantity: string | number

    Unit of measure. Defaults to PIECE.

    unitPrice: string | number

    Net unit price, in the invoice currency.

    vatPercentage: string | number

    VAT rate as a fraction, e.g. 0.27.