Skip to main content

Interface: JournalEntryData

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

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:96

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


lineItems​

readonly lineItems: object[]

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

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:98

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