Files
rdb/man/consolidate.man
T

65 lines
1.7 KiB
Groff

.TH consolidate "" "" "/act/gl Command"
.PC "Combine all subsidiary journals to general journal"
\fBconsolidate \fInextdate\fR
.PP
.II "consolidate journals"
.II "journal^consolidate"
The command
.B consolidate
is part of the accounting/general-ledger system that is included with
.BR /rdb .
It assembles all of the subsidiary journals, such as
.BR journalincome ,
.BR journalexpense ,
and
.BR journaldeposit ,
into the general journal named
.BR journal .
It also converts from single-entry to double-entry bookkeeping
by totaling
.B Debits
and
.B Credits
and inserting counterbalancing adjustments to the cash account.
It needs the
.B nextdate
for these accounts.
.SH Example
The command
.DM
consolidate $NEXTDATE
.DE
.PP
writes into file
.B journal
data that resemble the following:
.DM
Date Account Debit Credit Ref Description
------ ------ ------- ------- ------ ----------------------
890101 4370 2 r parking at clients
890103 4380 15 c115 shuttle bus to airport
890104 4380 13 v meal
890105 4380 13 c116 meal
890106 4384 114 r hotel
890118 3100 3286 c101 consulting
890125 3080 250 c1459 book fees
891231 1010 5858 double-entry
891231 1010 17036 double-entry
891231 3010 13500 deposit from sales/deposit
891231 4020 3601 check from pur/check
891231 4030 2100 payroll from pay/journalpay
.DE
.PP
Note the double-entry adjustments, and the totals of journals
from sales, purchasing, and pay departments.
The
.B Date
came from the
.B NEXTDATE
shell variable, which you must set in your
.B .profile.
.SH "See Also"
.B
getjournal
.R