|
Journal() 
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
It 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:
-
The series of journals not balancing
correctly
-
A negative amount
-
Attempting to post to an invalid general ledger
code
-
Attempting to post to an invalid period
-
The Journal() function may only be used from within
the CAPITAL Office (CAPWIN) main application. It cannot be accessed
from other applications such as Visual Builder or INSTALLATION
Workshop.
Example
* Sample balancing entry
Journal("18100", "C", 100, Today(),
"Sample Journal")
Journal("18110", "D", 100,
Today(), "Sample Journal")
____________________________
Related Topics
Business
Function List
|