
* A specimen master journal file for a company called "John Doe Enterprises".
* An asterisk marks everything to the right of it as a comment--something
* that the posting program will ignore.  If you edit this file for your own
* use, you will probably want to remove most of the comments.

* First we specify the maximum number of digits (including the cents) needed
* to express the largest value in the journal or legder:

CONFIGURE: digits 8

* The journal name is optional. If you omit it, the posting program will
* use the name of this file as the journal name.

JOURNAL: JOURNAL

* The company name is recommended.  To prevent erroneous posting, the same
* name must appear in all journals.  If the posting program finds a company
* name that does not match the others, it will warn you.

COMPANY: John Doe Enterprises

* Before any postings can be done, we must create a chart of accounts.
* This creates a general ledger in which all account balances are zero.

INCLUDE: ACCOUNTS

** asset accounts
*
*DEBIT ACCOUNT:  Cash
*DEBIT ACCOUNT:  Accounts Receivable
*DEBIT ACCOUNT:  Inventory
*
** liability accounts
*
*CREDIT ACCOUNT: Accounts Payable
*
** capital accounts
*
*CREDIT ACCOUNT: John Doe Capital
*
** income accounts
*
*CREDIT ACCOUNT: Sales
*DEBIT ACCOUNT:  Returns and Allowances
*
** expense accounts
*
*DEBIT ACCOUNT:  Purchases
*CREDIT ACCOUNT: Purchase Discounts
*CREDIT ACCOUNT: Inventory Change
*CREDIT ACCOUNT: Interest Income
*DEBIT ACCOUNT:  Advertising
*DEBIT ACCOUNT:  Rent
*DEBIT ACCOUNT:  Utilities

* In this example, it is presumed that John Doe started his business on
* March 1, 1990 with $10,000 in cash and $50,000 in inventory.

DATE: March 1, 1990
Cash                   10,000.00
Inventory              50,000.00
  John Doe Capital              60,000.00

* The inventory balance at the beginning of the month will be needed for
* the income statement.  We therefore record it in the non-ledger amount
* called "Beginning Inventory".

DEBIT VARIABLE: Beginning Inventory

ADD: Inventory
TOTAL: Beginning Inventory

* The transactions for March are recorded in a separate journal called
* GENERAL.  The "Include" command tells the posting program to read
* the file GENERAL before going on to subsequent postings and commands
* in this file.  We might have used our text editor to load the file
* GENERAL into this file.  The file GENERAL contains entries
* that are likely to change from month to month.  This file, however,
* contains mostly entries and commands that are likely to be the same
* from month to month.  We may be able to re-use it.

INCLUDE: GENERAL

* We compute some non-ledger amounts needed for income statement

CREDIT VARIABLE: Net Sales, Gross Profit on Sales, Gross Income, Net Income
DEBIT VARIABLE: Net Purchases, Goods Available for Sale, Cost of Goods Sold
DEBIT VARIABLE: Expenses

ADD: Sales
ADD: Returns and Allowances
TOTAL: Net Sales

ADD: Purchases
ADD: Purchase Discounts
TOTAL: Net Purchases

ADD: Net Purchases
ADD: Beginning Inventory
TOTAL: Goods Available for Sale

ADD: Goods Available for Sale
SUBTRact: Inventory
TOTAL: Cost of Goods Sold

ADD: Net Sales
ADD: Cost of Goods Sold
TOTAL: Gross Profit on Sales

ADD: Gross Profit on Sales
ADD: Interest Income
TOTAL: Gross Income

* Here we add the balances in all accounts from "Advertising" to
* "Utilities", inclusive, as they appear in the chart of accounts.
* This is much easier than including a separate line for each
* account, and allows us to insert new expense accounts from time
* to time without changing this command.

ADD: Advertising .. Utilities
TOTAL: Expenses

ADD: Gross Income
ADD: Expenses
TOTAL: Net Income

* We create an income statement from the form IS.FRM and write it
* to the file REPORT.  The previous contents of the file REPORT, if any
* are lost.

DATE: March 31, 1990
REPORT: IS.FRM, REPORT

* We close all income and expense accounts into the capital account

CLOSE: Sales .. Utilities
INTO: John Doe Capital

* We compute some non-ledger amounts needed for balance sheet

DEBIT VARIABLE: Total Assets
CREDIT VARIABLE: Total Liabilities and Capital

ADD: Cash .. Inventory
TOTAL: Total Assets

ADD: Accounts Payable .. John Doe Capital
TOTAL: Total Liabilities and Capital

* We create a balance sheet from the form BS.FRM and append it to the
* previously crated income statement

REPORT: BS.FRM, +REPORT

* We save a post-closing trial balance with zero balances omitted.
* This trial balance can be used to open the books next month, because
* it is in an acceptable journal format.  Its journal name is OPEN.

CONDENSED TRIAL BALANCE: PCTB

* We save the general ledger with all postings.  It might be a good
* idea to print the file LEDGER and sign and date each page to provide
* an audit trail.

LEDGER: LEDGER

* We tell the operator the posting is finished.

MESSAGE: Finished

