Skip to main content
Version: 1.x

Interface: JournalEntryData

Defined in: src/intents/types.ts:103

Input data for creating a journal entry (FI-GL).

Sap Module

FI

Business Context

General-ledger journal entry posting.

Example

import type { JournalEntryData } from '#intents/types.js';

const entry: JournalEntryData = {
documentDate: '2026-02-20',
postingDate: '2026-02-20',
lineItems: [{ glAccount: '400000', debitCredit: 'S', amount: 1000 }],
};

Properties

documentDate

readonly documentDate: string

Defined in: src/intents/types.ts:105

Document date in ISO 8601 format (YYYY-MM-DD).


lineItems

readonly lineItems: object[]

Defined in: src/intents/types.ts:109

Line items to include in the journal entry.

amount

readonly amount: number

costCenter?

readonly optional costCenter: string

debitCredit

readonly debitCredit: "S" | "H"

glAccount

readonly glAccount: string


postingDate

readonly postingDate: string

Defined in: src/intents/types.ts:107

Posting date in ISO 8601 format (YYYY-MM-DD).