xMatix
Sign in Request demo
xMatix
PRODUCTS
SalesField Sales & SFACRMRewardsClaimsInventoryProcurementWarehouse ManagementField ServiceServiceSupportTelephony & MessagingFinance & AccountingPayrollExpense ManagementCommercePortalsAnalytics & ReportingData StudioMobile AppSee all products →
PLATFORM
Platform overviewApp BuilderAutomationIntegrationsSecurity & GovernanceChange ManagementDevelopers
SENSE AI
Sense AI overviewSense AssistSense ControlSense VisionAI StudioTrust & governanceIn Claude & ChatGPTUse cases
SOLUTIONS
Auto DMSConsumer Goods DMSSales Force Automation (SFA) FMCG & DistributionManufacturing & Dealer NetworksAutomotive & DealershipsPharma & HealthcareConsumer DurablesAgri-InputsBuilding MaterialsService NetworksWarehousing & 3PLFinancial AccountingERP SoftwareIndia GST ComplianceUAE VAT & e-InvoicingSaudi ZATCA & VATAll solutions →
RESOURCES
Knowledge CenterDeveloper & CLIBlogGuidesWhat is xMatix?Company facts
COMPANY
AboutCareersPartnersEventsContactAuthorsLegal
Sign in Request demo
Home/Docs/Entity Reference/Journal — entity reference
REFERENCE · Last reviewed

Journal — entity reference

A journal is a balanced set of debit and credit lines, and posting it is how a value movement reaches the general ledger. Documents such as invoices, bills, payments, expense vouchers, payroll and depreciation create and post their own journals; users enter manual journals for opening balances, accruals, reclassifications and corrections. Post checks that there are at least two lines, one positive side per line, a GL account on every line, no inactive accounts, a party on every control-account line and equal totals, then resolves an Open fiscal period and Open fiscal year from the document date, stamps the totals and updates the GL and party period balances. A posted journal's lines can never change and the journal cannot be deleted; Reverse posts a mirror journal and marks the original Reversed.

Fields

FieldLabelTypeRequiredWhat it does
BranchIdBranchLookup → BranchYesBranch of the journal; the seeded New form lets you leave it empty. Lines without a branch take it on posting, and a line's branch then supplies its business unit and GST registration. The lookup is limited to the selected company's branches. Hidden when the organization runs a single location.
BusinessUnitIdBusiness UnitLookup → BusinessUnitBusiness unit of the journal, shown in the record header but on no form. On posting it fills lines that have no business unit before the branch's business unit and the GL account's Default Business Unit are tried. When lines end in two or more units and the company has an inter-business-unit clearing account, posting adds one clearing line per unit.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
FiscalPeriodIdFiscal PeriodLookup → FiscalPeriodYesThe fiscal period the journal posts into, assigned from the document date when the journal is first saved and assigned again on posting. Saving or posting is refused when that period or its fiscal year is not Open. If the company has no period covering the date, an April to March fiscal year with open monthly periods is created.
IdIdGuidYes
JournalDateDocument DateDateThe accounting date, defaulting to today. It decides the fiscal period and is copied to every line. The seeded future-date rule does not take effect on journals, so a future date is accepted.
JournalTypeNameJournal Type NameTextKind of entry: Manual, DocumentPosting, OpeningBalance, Reversal, Closing, Depreciation, Payroll or Allocation. Defaults to Manual and is free text on the form. Recurring runs and some document postings also carry Manual, so use Source Entity Name to tell whether a document created the journal. A Reversal journal cannot itself be reversed.
LabelLabelTextOptional display label. Reversals get Reversal of followed by the original's label or number; recurring runs get the template label and run month.
ModifiedByIdModified ByLookup → UserAccountYes
NameNameText, uniqueYesThe journal's document number, taken only from the tenant's active document-name setting for Journal. That setting numbers every journal, whether keyed in, produced by a document, a reversal or a recurring run. No such setting ships with xMatix, and without one journals are saved with no number.
NarrationNarrationTextFree-text reason for the entry, edited on the record's Details tab. Reversals made from the journal page get Reversal of followed by the original number.
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → AccountYesYour own company, the legal entity whose ledger receives the journal, not a customer or supplier. Only active partner accounts are offered. It decides the fiscal calendar and scopes the balances. Hidden when the organization runs a single company.
PostedByIdPosted ByLookup → UserAccountThe user who posted the journal, stamped on posting.
PostedDateTimePosted Date TimeDateWhen the journal was posted (UTC), stamped on posting. Use the document date, not this, for period questions.
PostingPurposePosting PurposeTextSet only on journals that documents create, to tell apart the several journals one document can produce, for example Invoice, InvoiceCOGS or InvoiceTcs. A reversal copies it from the original.
RecordTypeIdRecord TypeGuid, hidden
ReversalOfJournalIdReversal Of JournalLookup → JournalOn a reversal journal, the journal it reverses. Set by the Reverse action, which also marks the original Reversed.
SourceEntityNameSource Entity NameTextType of the document that produced the journal, for example Invoice or RecurringJournal. Empty on journals entered by hand.
SourceRecordIdSource RecordLookup → @sourceEntityNameThe document that produced the journal. Empty on journals entered by hand; a reversal copies it from the original.
StatusStatusTextDraft when created; Posted only through the Post action; Reversed only through the Reverse action. PendingApproval is accepted and can be posted, but nothing seeded sets it. A journal cannot be created as Posted and its status cannot be typed in. Draft journals can be deleted; Posted and Reversed ones cannot.
TotalCreditTotal CreditCalculated (calculated)Sum of the line credits rounded to two decimals, stamped on posting and always equal to the debit total. Empty on a draft keyed in by hand. Includes any inter-business-unit clearing lines.
TotalDebitTotal DebitCalculated (calculated)Sum of the line debits rounded to two decimals, stamped on posting and always equal to the credit total. Empty on a draft keyed in by hand.
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes

Actions

ActionLabelTypeWhat it does
BulkDeleteDeleteDeleteDelete the selected records.
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteOnly works while the journal is Draft or PendingApproval. A Posted or Reversed journal cannot be deleted — the ledger is append-only — and the attempt is rejected with a prompt to reverse it instead.
DeleteInListDeleteDeleteDelete in a list page
EditEditEditOnly meaningful while the journal is Draft or PendingApproval. Once the status is Posted or Reversed the record is immutable outside the posting service, and a status change is refused with a prompt to use the reversal action.
EditInLineEditEditInlineEdit
EditListRowEditEditEditListRow
NewNewNewNew
PostJournalPostServerAction (PostJournal)Posts a Draft journal: checks the lines, resolves an Open fiscal period and fiscal year from the document date, fills missing line branch, business unit and GST registration, adds inter-business-unit clearing lines where configured, stamps totals, Posted status, posting user and time, and updates the GL and party period balances in one save. Nothing is saved if any check fails.
ReverseJournalReverseServerAction (ReverseJournal)Creates and posts a journal of type Reversal, labelled Reversal of followed by the original's label or number and numbered by the Journal document-name setting, with every line's debit and credit swapped and Reversal Of Journal pointing at the original, then marks the original Reversed. From the journal page the reversal is dated today. Only Posted journals can be reversed, and a reversal cannot be reversed.

Validations

ValidationApplies toError messageNotes
Fiscal PeriodFiscalPeriodId, ErrorFiscal Period cannot be null!Fiscal Period cannot be null!
Journal Date ValidationJournalDate, ErrorDocument Date cannot be future date.Document Date cannot be future date.

Lookup filters

FilterLookup fieldNotes
Branch For Partner AccountBranchId
Fiscal Period ActiveFiscalPeriodId
Partner Account FilterPartnerAccountId