General ledger is the accounting hub - and an understanding of the accounting concepts is important in grasping what needs to be done to setup webERP correctly.
This document is not a text on general accounting but a brief introduction is necessary.
The general ledger like accounts receivable is made up of many accounts although unlike accounts receivable the balances are not related to how much customers owe you - they represent the amounts that the business has: in stock in vehicles and equipment in the bank in total customer balances in total amounts due to suppliers had contributed to it as loans or sharecapital from investors When these accounts are all listed the report is called a "Balance Sheet" since the value of all of these items will be equal to the accumulated profits net of any drawings or dividends paid to the investors.
The general ledger also keeps track of how much is spent on expenses and is charged out to customers as sales - whether or not the amounts are actually paid to the supplier of the expense or the sale has been paid by the customer. It is really only interesting to look at these accounts over a period to see what the income and expenses of the business have been and produce the "Profit and Loss Statement".
However, in bringing a business on to webERP it is the balances that collectively represent the total worth of the business (in historical terms) that are important to record - these are called balance sheet accounts (the expense and revenue accounts are called profit and loss accounts).
Double Entry Bookkeeping
When the balance of every account in the general ledger is added together the net result should always be zero - that's because every entry into the general ledger is made up of two parts a debit (a positive amount) and a credit (a negative amount). eg. We spend $100 on fuel - the debit goes to vehicle expenses and the credit goes to the bank account (since the bank balance has gone down by $100) and the accumulated costs of running the vehicle has gone up by $100. Literally every entry is recorded twice once with the account that increases and once with the account that is reduced. This is why when the debit balances are added together with the credit balances the result should always be zero.
Historically when accountants checked their manual books to ensure that every entry was recorded correctly they listed all the balances and added them up on a report called a "Trial Balance" - to check that the general ledger did in fact balance. Today a trial balance off the computer is a list of all the general ledger balances - with a check total at the end to show that the computer has done its job recording journals correctly.
As a simple example consider a trial balance with the entries:
Account Amount
Bank Account 1,000.00
Debtors Control 5,000.00
Creditors Control (2,000.00)
Motor Vehicles 10,000.00
Loan (3,000.00)
Accum Profits (11,000.00)
Check Total 0.00
The system stops the user from entering journals to general ledger accounts defined as bank accounts.
The Bank Account must be defined as such first - from the setup tab - Bank Accounts.
However, under general ledger - Bank Account Receipts - it is possible to enter general ledger receipts - a button to enter "General Ledger Receipt" allows receipts to be entered without selecting a customer account. The analysis of the other side of the general ledger entries that make up the receipt can then be entered. This is how general ledger balances should be brought on.
Create a general ledger receipt for 1,000.00 to make the opening bank account balance correct. When creating this receipt the user must select the general ledger accounts that the deposit represents you can enter as many general ledger accounts with different amounts against each. In a normal situation the receipt may be for example the sale of a vehicle - where the appropriate general ledger account may be the loss on fixed asset disposals and maybe some of it may also be sales tax/GST/VAT.
However in the case of entering the opening balances the $1,000 deposit in our example is actually Debtors Control 5,000.00 Creditors Control (2,000.00) Motor Vehicles 10,000.00 Loan (3,000.00) Accum Profits (11,000.00) Total bank deposit $1,000
So entering in the receipt the analysis as above - -5,000 Debtors control, 2,000 Creditors control, -10,000 Motor vehicles, 3,000 loan and 11,000 accumulated profits will agree then to the 1,000 received into the bank account. It is important to date the receipt in the month prior to when the new webERP system will commence activity.
In this way the brought forward balances for the new period will be correct. Where there are several bank accounts each defined with different general ledger accounts, then a receipt should be entered to each bank account with a balance (or a payment if the bank account is overdrawn) - these balances can be cleared through postings to a suspense account. It is important that the general ledger entries to the debtors control account and creditors control account tie up to the total of the functional currency balances of the AR and AP respectively.
Finally Once all entries are made to reconcile the customers accounts with the general ledger debtors account the system should be backed up.
The mysql utility mysqldump is one method that produces an sql script that will restore the system to where it was when the script was created. With users out of the system - to avoid any locking issues - and assuming mysqldump is in the system path:
>From a command prompt, using a username and password as created when mysql was installed.
#mysqldump -u username -p password --opt weberp > /home/myhomedir/weberp_backup.sql postgres has a similar utility





