Journal() generate/en72.jpg


Add a journal entry directly to the CAPITAL General Ledger.

Syntax

Journal(<cAccount>, <cDBCR>, <nAmount>, <ndPeriod>, [<cReference>], [<cDetails>]) --> lSuccess

Arguments

<cAccount> --> The general ledger account code.

<cDBCR> --> Whether the journal entry is a debit or credit. Specify "C" for credit or "D" for debit.

<ndPeriod> --> This is either the period number to post to or the date of the journal. If a period number is specified you may pass 999 to default the journal to the last period in the current general ledger. If a date is specified, CAPITAL will determine the correct period to post to by examining the date.

<cReference> --> An optional journal reference.

<cDetails> --> An optional second journal reference.

Returns

If the journal was successfully added to the system, TRUE is returned, otherwise FALSE is returned.

Description

This function adds a journal entry to a specified accounting period.

Notes

generate/mistake2.gifIt is the responsibility of the person using the Journal() function to ensure that all entries correctly balance. If the posting is invalid for any reason, the journal will be rejected by the general ledger when the End Period Wizard is executed. Possible reasons for rejection include:



CAPITAL VISUAL BUILDER