Professional Documents
Culture Documents
Accounting Software BCS Project
Accounting Software BCS Project
By
Sadaf Fayyaz
Supervised
By
Bahria University
Examination committee
Supervisor
External Examiner
Internal Examiner
HOD
Dated
DEDICATED
TO
&
RESPECTED TEACHERS
We are dedicating this project to our respected teachers who supported us till the end and gave
us courage and motivation for the completion of this project.
ACKNOWLEDGEMENTS
It is a universal truth that the intensity of love, affection and warmness of one’s inner
feelings cannot be measured by verbal means. Real regards and fondness for some
personality can only be visualized and perceived. But in this civilized age the only media
to communicate one’s inner feelings to other fellows are the words. Therefore I have tried
to clad my inner feelings into following words.
First of all, all our heartiest thanks to the almighty ALLAH, whose mercy and blessings
helped me to complete this final project.
We express my deepest thanks and gratitude to our project advisor Mr. Nadeem M Khan
for his help, guidance and providing every facility possible. Without his sincere
cooperation, we might not be able to complete this project.
We are truly grateful to our respected teachers. Without their guidance and sincerity, we
might not be able to get such an achievement in our career.
Our thanks are due to Mr. Zia for his every possible technical support.
We would like to thank all our friends and campus mates. We shall always remember
their support throughout the BCS program.
The account of acknowledgement will remain incomplete if we don’t express our sincere
appreciation indebtedness and gratitude to our lovely parents whose deep love and utmost
care cherished our lives. Their prayers and concern have always been a source of
inspiration and encouragement to us throughout our academic career.
PROJECT IN BRIEF
SUMMARY
It is an accounting software. Voucher entries are made, transactions are processed and the data
entries are maintained in a backend database. Time to time software maintenance is done. The
basic purpose of the software is the maintenance of the company’s accounts. It can only be used
by an accountant or a person having little bit information about accounts. It is designed in
keeping in mind the international format of “Peachtree accounting Software”.
It generates different account reports like General Ledger report, Chart of account report and trial
basis reports.
Various financial statements like income statement, Cash flow statement and Balance sheet are
generated. The accountant is free to use five kinds of vouchers according to his/her choice.
Through this computerized system the status about the database management the system is
provided in an efficient manner. The speed and the processing time of the system is quick
enough thus giving better data manipulation and correct calculated results.
CHAPTER ONE INTRODUCTION
Introduction
The Habib Bank Group is a leader in Pakistan's services industry. An extensive network of 1425
domestic branches – the largest in Pakistan – and 55 international branches has enabled HBL to
provide comprehensive services that meet customer needs. This has ensured thriving client
relationships that form the backbone of the Bank's operations.
Today, HBL plays a central role in Pakistan's financial and economic development. It has come a
long way from its modest beginnings in Bombay in 1941 when it commenced operations with a
fixed capital of 25,000 rupees.
Habib Bank has been a pioneer in providing innovative banking services. These have included
the installation of the first mainframe computer in Pakistan followed by the first ATM and more
recently, internet banking facilities in all our 1425 domestic branches.
The Bank's towering presence in Pakistan's financial and commercial life has remained
unchanged over the decades. The strength of its brand and image is symbolized by its prominent
Head Office building that has dominated Karachi's skyline for 35 years.
To be recognized as the leading financial institition of Pakistan and a dynamic international bank
in the emerging markets and granting a superior value to customers , stakeholders and
employees.
The Retail Banking network, with 1425 branches, is the core strength of Habib Bank. Its
extensive reach in all geographic locations – urban and rural – throughout the country provides
access to over 5 Million customers across all sectors of the economy. The network provides HBL
with the largest diversified low cost deposit base of any bank in Pakistan, and forms the basis for
many of our other business lines: corporate and investment banking and treasury activities.
Retail Banking Group (RBG) has two principal areas of activity; the retail network for deposit
mobilization and the consumer-banking group. Deposits mobilization, the traditional strength,
continued to perform strongly in 2002 with deposits growing by 12%.
HBL is the only major bank to have a very dedicated group to serve the Small & Medium
Enterprises (SME) sector. CBG was therefore established in late 2000 to provide banking
services and credit on a structured and systemized basis. It now covers 25 branches in the six
major industrial cities of Pakistan. The Group now works closely with its customers, which cover
all segments of the economy including the textile sector, vendors and suppliers to structure the
finances and improve their capabilities. There is a growing propensity for consumer spending to
uplift living standards. Recognizing that consumer demand can be a major driver of investment
and economic growth, the Government has also moved towards an enabling regulatory
framework and has also taken initiatives to create an appropriate legal regulatory framework to
enable the development of a housing finance market.
With its extensive branch network and large customer base, HBL has an important role to play in
the development of this sector of the economy in which substantial growth in the next five years
is expected. HBL has moved aggressively and has already introduced three major products;
Personal Loans, Car Financing and Consumer Durable Financing, in association with major
suppliers of consumer products. These have been well received and volumes have been building
up steadily.
Agriculture is the most important contributor to Pakistan’s economy. HBL, which has been a
leader in agriculture financing, plans to increase further its credit to this sector with a particular
focus on providing a wider range of products to small and medium size farmers. In this regard, to
provide flexibility, the Haryali scheme for farmers was introduced which is a 3-year revolving
facility rather than the traditional short term seasonal financing. Our specialized agricultural
finance department helps farmers in modernizing their farming techniques. The Government has
also provided a regulatory framework to encourage corporate farming and as this develops our
participation in this sector will grow even further.
In 2002, was launched real time inter-city banking, internet banking for 500,000 customers and
PC banking for our corporate and commercial banking customers. Their ATM network has
expanded and its usage is also growing rapidly.
A Debit Card program has also been introduced which will be available in over 1,000 point of
sale terminals within the country.
Inward remittances from overseas Pakistanis provide an immeasurable support to the economy.
Owing to our unique combination of the largest domestic and international networks, they
process the highest volume of overseas remittances into Pakistan. they recognize that speed and
efficient processing is the requirement of remitters and to meet these needs, we have put in place
our FAST Transfer service and fully automated processing center in Karachi ensures that all
remittances are delivered within 24 hours in urban areas and 48 hours in rural areas.
In their Retail network, they have an unmatched distribution network, which provides many
opportunities for growth.
Internet Banking is another medium of e-banking services, which allows Retail, Commercial
and Individual Customers to access the information of their account(s) both in Pak Rupees &
Foreign Currency by connecting to hblEbank from their desktop through Internet.
Internet Banking Services provide the following secured facilities to our clients:-
Statement of Account(s)
Single Account Balances
Group Accounts Balances
Payment to Third Party by requesting the following:
o Issuance of Draft
o Issuance of Pay Order
o Issuance of Telegraphic Transfer
o Issuance of Mail Transfer
Payments can also be made in Foreign Currencies (if permitted under Foreign Exchange
Regulations). All authorized payment instructions received on any working day by hblEbank
before 1:30 P.M. (Monday to Thursday) and 12:00 Noon (Friday & Saturday) will be acted upon
the same day. Payment instruction(s) received after these timings will be entertained in next
working day.
PC Banking is one of the e-banking services being offered by the Bank.. This allows two-way
communication between the Bank and its Corporate, Retail and Commercial Customers and
gives the client access to download the information of their account(s) both in Pak Rupees &
Foreign Currency to their desktop PC through a dial-up connection.
With PC Banking customers enjoy the following secured facilities:
Statement of Account(s)
Single Account Balances
Group Accounts Balances
Account to Account Transfers
Payment to Third Party by requesting the following:
o Issuance of Draft
o Issuance of Pay Order
o Issuance of Telegraphic Transfer
o Issuance of Mail Transfer
Payments can also be made in Foreign Currencies (if permitted under Foreign Exchange
Regulations). All authorized payment instructions received on any working day by hblEbank
before 1:30 P.M. (Monday to Thursday) and 12:00 Noon (Friday & Saturday) will be acted upon
the same day. Payment instruction(s) received after these timings will be entertained on next
working day.
IBM Compatible PC
P3 Processor + 64MB Ram (Minimum)
Windows 95 / 98 / NT / 2000 / XP
56K Modem (AT HAYES compatible) 3 Com / US Robotics (Preferred)
DUN-Dial up Networking (Windows)
Hard Disk -- Free space: at least 250 MB (for hblEbank application)
Telephone Line – that can use a modem i.e. Analogue.
Enterprises operating in the middle market contribute significantly to the economy of a country.
Traditionally, this sector was the stronghold of HBL’s business. During the early 90s, with the
liberalization of the financial sector in Pakistan, competition in the industry stiffened due to the
emergence of new banks in the private sector. The senior management at most of these banks
comprised personnel from HBL. They not only knew the market but were also familiar with the
shortcomings of HBL. Under the new set-up, they were able to address these shortcomings and
began to target HBL’s customer base. With the inception of an alternative, HBL customers
started migrating to the newly established banks this causing the erosion of HBL’s market share.
During FY-2000 HBL’s management decided to address this issue. Hence forth, Commercial
Banking was created to focus on the business needs of the middle market customers. On
November 1, 2000 Commercial Banking came into being, it is headed by Mirza Saleem Baig. At
present, 18 Commercial Centers and Sub-Centers functioning, located at Karachi, Lahore,
Faisalabad, Sialkot and Gujranwala.
CHAPTER TWO EXISTING SYSTEM
There was no systematic approach towards the dealing of management, every transactions is
adopted manually. To date all dates and records was collected manually. No scientific approach
or technique was used.
All current records, date and information were entered by hand, so there was a greater
opportunity of mistake.
Unlike computerized date, in manual system data is entered in files, which are onward by
departments, each department just keeps the record of its own data, so data does belong to
organization but it cannot be shared unless it is taken up to other department. Another problem
that arises here is that multiple users cannot share data at one time.
As all processing was done manually, i.e. voucher entry, maintenance of records or updating of
records, which take a lot of time. Management needs more employees and more capital is
required.
Along with this lot of time is wasted, as time is very precious for any organization so it is a great
loss as “TIME IS MONEY”.
2.1.5 Inconsistency:
As there is manual system, registers are maintained, so there is no proper system of record
keeping, no consistent process of keeping relevant record is maintained. Every employee has free
access to the records, so they can commit changes to the data, and multiple mistakes can be there
in data.
2.1.6 Redundancy:
Among all drawbacks, the aspect of redundancy is the major issue. Redundancy is when same
type of data is present at different location. At bank same type of data was present at multiple
locations, items of data were identical, information was not integrated, hence several copies of
the same data were created.
In bank there was no backup of data, unless you make copies of data, as data was entered in files,
so there was big chance of loss of data.
Data can be stolen due to lack of security. Someone can break into record room and steel
precious data. Security was a big problem for the organization. Today anywhere in the world
data is the most important for any organization.
Management not only wants to computerize the database, but also want to maintain that system,
its record entries, update and delete the records and easy retrievable of data. They need data
backups so that the chances of loosing data are minimized. Our clients need more security for
their data so that any one cannot access the data at its own will.
CHAPTERTHREE
PROPOSED SYSTEM
3.1 Scope of Proposed System
The Bank is currently using manual system, which has some drawbacks. That was the reason that
forced management to change it into computerized system. In the first phase
we choose some areas of organization to implement the system on trial basis. The main reason
for this was
Our computerized system has many advantages over manual system. It makes our system more
efficient, reliable and fast. Through this we save our time and manpower. Our system offers a
number of potential advantages, which are described one by one.
a) Easy to use
b) Easy to access
We can easily retrieve, add, delete and modify the data in short time using queries. Our system
provides a facility to the user and management to access the data easily. A database system
provides multiple retrieval paths to each item of data, giving user much greater flexibility in
location and retrieving department boundaries.
The whole computerized system is time saving as user just need to make an entry in the
system only.
Independently produced copies are helpful in restoring damaged data files and in providing
validity checks on crucial data. To ensure that data are accurate and available whenever needed,
either database management software or additional procedures have to provide these essential
capabilities. A database management system usually automates many more of the backup and
recovery tasks than a file system. Our system covers database security, integrity and recovery
thought.
Data is always kept secured. As the administrator has the option of following password to the
person so the data is not available for all and only the considered person and the top management
can access it. For this safety we provide looking system facility with out system, to secure data.
Through minimum data redundancy we make our system more efficient. Each data is recorded at
only one place. If data occurs at multiple places our system is aware of it. We reduced data
redundancy through repeated files are integrated into single logical structure.
In our database system, data are dependent of the application programs that use them. Within
limits we can change either the data or the application programs that use the data without
necessitating a change in the other factor. As a result, program maintenance can be significantly
reduced in modern database environment.
The separation of data description from the application that use the data is called data
independence. As a result of this, an organization’s data can change and evolve without
necessitating a change in the application programs that process the data. Data independence is
one of the major objectives our database system.
CHAPTER FOUR
WORKING OF THE PROPOSED SYSTEM
EACH ENTRY is stored only once, we cannot have duplication in the store values. When
controlled redundancy is permitted in the database, the DBMS itself shoulenforce consistence by
updating.The new system is more efficient and generates useful reports like Chart of Account
Report, Genaral Ledger report, different balace sheets like income statement, cash flowstatement
and many more. A little bit description aboount the reports generatrd by thesystem is as follows:
The Chart of Accounts is the coding elements used to classify, record, budget and report
financial transactions. Every transaction must be properly coded to be a valid posting to a
ledger.The Chart Of Account is a listing of all the accounts in the general Ledger, each account
accompanied by a reference number. To set up a COA, one needs to identify theaccount type and
to be used by the accountant according to the business. For very small business, three
digitnumber may suffice for the account number.
The general ledger is the core of a company’s financial records. These constitute the central
“books” of the system, and every transaction flows through the general ledger.
These records remain as a permanent track of the history of all financial transactions since day
one of the life of the company.
4.2.1 Highlights
Store different sets of budget figures to project future needs and compare projections.
Lock periods to prevent unauthorized changes.
Automatically create budgets using prior-year information, or choose from seven other
computation methods.
The Journal is a point of entries of business transactions into the accounting system. It’s a
chronological record of transactions, showing an explanation of each transaction, the accounts
affected, whether those accounts are increased or decreased, and in what amount. The Monthly
General Journal report is used at the end of each month to derive the Journal entries required by
your Accounts Package to ascertain monthly
4.4 Profit/Loss.
By entering these details into Accounts Package we shoud be able to, identify how the service
traded in the past month, identify what amounts were spent in particular areas, compare with
previous Profit/Loss Reports and identify movement in some account classifications e.g.
Food/Drink expenses were higher in March, than in April. We may wish to investigate the
reasons for any variations in the above areas so that more accurate budget forecasting and
costing can be achieved.The Profit/Loss Report from Accounts Package will list the
Income/Expenditure transactions for the month by consolidating the journal postings from the
Monthly General Journal report and the regular payments you make to creditors each month.
Accounts Payable:
The balance sheet is a snapshot of the company's financial standing at a point in time. The
balance sheet shows the company's financial position, what it owns (assets) and what it owes
(liabilities and net worth). The bottom line of a balance sheet must always balance (i.e. assets =
liabilities + net worth). The individual elements of a balance sheet change from day to day and
reflect the activities of the company. Analyzing how the balance sheet changes over time will
reveal important information about the company's business trends. Liabilities and net worth on
the balance sheet represent the company's sources of funds. Liabilities and net worth are
composed of creditors and investors who have provided cash or its equivalent to the company in
the past. As a source of funds, they enable the company to continue in business or expand
operations. If creditors and investors are unhappy and distrustful, the company's chances of
survival are limited. Assets, on the other hand, represent the company's use of funds. The
company uses cash or other funds provided by the creditor/investor to acquire assets. Assets
include all the things of The balance sheet is one of the financial statements that limited
companies and PLCs produce every year for their shareholders. It is like a financial snapshot of
the company's financial situation at that moment in time. It is worked out at the company's year
end, giving the company's assets and liabilities at that moment.It is given in two halves - the top
half shows where the money is currently being used in the business (the net assets), and the
bottom half shows where that money came from (the capital employed). The value of the two
halves must be the same - Capital employed = net assets, hence the term balance sheet.
The money invested in the business may have been used to buy long-term assets or short-term
assets. The long-term assets are known as fixed assets, and help the firm to produce.
Examples would be machinery, equipment, computers and so on, none of which actually get
used up in the production process. The short-term assets are known as current assets – assets
which are used day to day by the firm. The current assets may include cash, stocks and debtors.
The top half of the balance sheet will therefore be made up of the total of the fixed and current
assets, less any current or long-term liabilities the firm may have (creditors, loans and so on). It
may look as follows:-
million
Fixed assets 200
Current assets - stock 40
- debtors 50
- cash 20
TOTAL 110
less Current liabilities (40) 70
NET ASSETS 270m
The bottom half of the balance sheet then looks at where this money came from. Thisdepends on
how the business was originally funded. The main source of money for a limited company
starting up is the issue of shares. This is termed the share capital - the money the original
shareholders put into the business. From then on the assets of the company may be built up by
ploughing profit back into the business. This is calledretained profit, and is the other source of
money usually included in the bottom half of the balance sheet. This may therefore look as
follows:
Share capital 100
Retained profit 170
CAPITAL EMPLOYED £270m
4.6 Liabilities:
Liabilities represent a company's obligations to creditors while net worth represents the owner's
investment in the company. In reality, both creditors and owners are investors in the company;
the only difference is the degree of nervousness and the time frame in which they expect
repayment.
4.7 Assets
They are anything of value that is owned or due to the business is included under the assets
section of the balance sheet. Assets are shown at net book or net realizable value (more on this
later), but appreciated values are not generally considered.
Current assets are those which mature in less than one year. They are the sum of the following
categories:
Cash
Accounts Receivable (A/R)
Inventory (Inv)
Notes Receivable (N/R)
Prepaid Expenses
Other Current Assets
4.9 Cash
Cash is the only game in town. Cash pays bills and obligations; inventory, receivables, land,
building, machinery, and equipment do not, even though they can be sold for cash and then used
to pay bills. If cash is inadequate or improperly managed, the company may become insolvent
and be forced into bankruptcy. Include all checking, money market, and short term savings
accounts under cash.
Accounts receivable are dollars due from customers. They arise as a result of the processof
selling inventory or services on terms that allow delivery prior to the collection of cash.
Inventory is sold and shipped, an invoice is sent to the customer, and later cash is collected. The
receivable exists for the time period between the selling of the inventory and the receipt of cash
Receivables are proportional to sales; as sales rise, the investment one must make in receivables
also rises.
4.11 Inventory
Inventory consists of the goods and materials a company purchases to re-sell at a profit.
In the process, sales and receivables are generated. The company purchases raw material
inventory that is processed (aka work in process inventory) to be sold as finished
goodsinventory. For a company that sells a product, inventory is often the first use of cash.
Purchasing inventory to be sold at a profit is the first step in the profit-making cycle(operating
cycle), as illustrated previously. Selling inventory does not bring cash back into the company - it
creates a receivable. Only after a time lag equal to the receivable's collection period will cash
return to the company; thus it is very important that the level of inventory be well-managed so
that the business does not keep too much cash tied up in inventory, as this will reduce profits. At
the same time, a company must keep sufficient inventory on hand to prevent stockouts (having
nothing to sell) because this too will erode profits and may result in the loss of customers.
N/R is a receivable due the company in the form of a promissory note, arising because the
company made a loan. Making loans is the business of banks, not operating
businesses, particularly small companies with limited financial resources. Notes receivable is
probably a note due from one of three sources:
Customers
Employee
Officers of the company
Customer notes receivable is when the customer who borrowed from the companyprobably
borrowed because they could not meet the accounts receivable terms. If the customer fails to pay
the invoice according to the agreed-upon payment terms, the customer's obligation may be
converted to a promissory note. Employee notes receivable may be for legitimate reasons, such
as a down payment on a home, but the company is neither a charity nor a bank. If the company
wants to help the employee, it can co-sign onthe loan advanced by a bank.
An officer or owner borrowing from the company is the worst form of notes receivable. If an
officer takes money from the company, it should be declared as a dividend or withdrawal and
reflected as a reduction in net worth. Treating it in any other way leads to possible manipulation
of the company's stated net worth, and banks and other lending institutions frown greatly upon it.
Fixed assets represent the use of cash to purchase physical assets whose life exceeds one year.
They include assets such as:
Land
Buildings
Machinery and Equipment
Furniture and Fixtures
Leasehold Improvements
The trial balance is a worksheet on which a list of all general ledger accounts and their debit or
credit balance. It is a tool that is used to alert to errors in books. The total debits must equal the
total credits. If they don't equal, then there is an error that must be tracked down.
CHAPTER FIVE
ENTITES&ATTRIBUTES
Password
Fiscal year
Genaral Ledger
Chart of Account
Vouchers
5.1 Password
Password Login
Password
Starting date
Month
Year
Ending Date
Year
month
Fiscal Year
Voucher Type
Debit
Credit
Account Id
Account Type
Account Id Voucher Type
Genaral Ledger
Account ID (ID)
Account Type
Voucher Entries
References
Chart Of
Account
Voucher Entries
References
5.5 Vouchers
Bank Payment
Bank Receipt
Cash Payment
Vouchers
Entity Relation Diagram plays an important role in project making because all the projects
depend upon the ERD. After choosing all the entities and their attributes we have to find out
what kind of relationship is present in those all entities. Without defining the relationship we are
unable to draw a proper ERD for that project.
“An association between the instances of two or more entities, in which the Organization
takes interest.”
6.2 Types
When instance of entity class A is associated with only one instance class B then it is called One-
to-One relationship between A & B.
When one instance of entity class A is associated with more than one instance of class B then it
is One-to-Many relationship between A & B.
When many instances of entity class A are associated with many instances of entity class B then
it is Many-to-Many relationship between A & B.
6.3 Representation
Relationship representation depends upon the nature of the relationship between entities.
6.4 Relationships
6.4.1 Company_Entry:
The relationship found in these two entities is One-to-Many. i.e. only one Company to many
entrries .
Entry VOUCHER
Company
6.4.2 Voucher_types:
The relationship found in these two entities is One-to-Many. This because a voucher has five
types.
has
Types VOUCHER
The relationship found in these two entities is One-to-Many. i.e. A chart of account report has
many Genaral Ledger entries.
GENERAL has
LEDGER COAR
6.4.4 GL accounts_Trial Balance Sheet:
The relationship found in these two entities is One-to-Many. i.e. There is 1 Trial balance sheet
for all the general Ledger accounts. Which shows that all the debits must equal 2 all the credits.
HAVE Customers
N/R
N/R is a receivable due the company in the form of a promissory note, arising because
the company made a loan. Making loans is the business of banks, not operating
Customers
Employee
Officers of the company
The relationship found in these two entities is One-to-Many. i.e Many assets have 1 balance
sheet.
Assets HJas
Bal Sheet
CHAPTER SEVEN
USER INTERFACE
When Opening and compiling the project, Login screen appears, type the password and
MDI behid it will be opened. Now interaction with the accounts is enabled.
7.2 Chart Of Account
Go to the Debit /Credit, select a voucher type, make and process a certain transaction, save
it.There is no edit option. Print the record in the crystal report format, or press the search option
if a certain recor d has to be searched.
ERD shows the direction of data flows from entity to entity. Following Entity Relationship
Diagram shows the direction of the data flow in our database system.
Voucher Orders Customer
Provide
Produces Assets
Account
produce
We use SQL server 2000 for the storage of data. It is used for backend purposes. In this we
create the tables of our database system. These tables are used to store, manipulate and retrieval
data where Microsoft Visual Basic 6.0 is used for Front end. It is user friendly.
Microsoft Visual Basic 6.0 is used for font end in our database system. It is used to create forms
and reports using its own language. These forms are user friendly and very easy to use. The
interface of the software is designed using Microsoft Visual Basic 6.0. It is front-end tool. It has
very useful features as compared to the previous version. ADO is one of the good features of the
VB 6.0.VB 5.0 includes DAO and RDO. DAO has ability to access data from local machine
while RDO has ability to access data from remotely
There was nothing, which provides both of the DAO and RDO. Visual Basic 6.0 has
ActiveXData Object, which fulfill our requirement. It has a control, which is used to access data
from local machine as well as from remote server. By using this we can add new records, modify
previous records, delete records, find records etc.
Database connectivity is done by using ActiveX Data Object (ADO). ADO allows to access and
manipulate data from a data source. The ADO has three main components.
Connection Object
Command Object
Record Set Object
The connection object is the highest-level object in ADO object. It is used to make a connection
between the application and an external data score.
The connection object establishes a connection to data source. It allows your application to pass
client information such as username and password, to the database for validation.
The record set object is used to access records returned from a SQL query. Using the object, one
can navigate returned records, modify existing records, add new records, or delete specific
records.
CHAPTER ELEVEN CODING
Option Explicit
'Public LoginSucceeded As Boolean
Dim objOperationBtn As prjControlPanel.clsControlPanel
Option Explicit
Dim rsDetail As ADODB.Recordset
Dim boolAdd As Boolean
Dim boolDeactivateWin As Boolean
'Dim strAccountType As String
Dim strAccountId As String
'Dim objGrid As PrjFlexGrid.clsFlexGrid
Dim objOperationBtn As prjControlPanel.clsControlPanel
Values = Val(txtAccountID.Text)
Values = Values & ",'" & txtAccountDescription.Text & "'"
Values = Values & ",'" & VBA.Trim$(cboAccountType.Text) & "'"
'objOperationBtn.SettingTransStatus = OperationalBtns.TransactionStatus.Begin
boolSaveValidation = objOperationBtn.SaveRecThroughSql(prjControlPanel.Insert,
"ChartOfAccount", "AccountID,AccountDescription,AccountType", Values)
If boolSaveValidation = True Then
' objOperationBtn.SettingTransStatus = OperationalBtns.TransactionStatus.Commit
AddNewRec = True
Else
' objOperationBtn.SettingTransStatus = OperationalBtns.TransactionStatus.RollBack
AddNewRec = False
End If
Exit Function
errhandler:
Call objOperationBtn.ErrHandlerProcedure
End Function
Call objOperationBtn.DeactivateRecordset
Call objOperationBtn.ClosingConnection
objOperationBtn.MakingConnection ("Provider=SQLOLEDB.1;Integrated
Security=SSPI;Persist Security Info=False;Initial Catalog=Habib Bank Accounts")
Values = "AccountID =" & Val(txtAccountID.Text)
Values = Values & ",AccountDescription = '" & txtAccountDescription.Text & "'"
Values = Values & ",AccountType = '" & VBA.Trim$(cboAccountType.Text) & "'"
objOperationBtn.SettingTransStatus = prjControlPanel.Begin
boolSaveValidation = objOperationBtn.SaveRecThroughSql(prjControlPanel.Update,
"ChartOfAccount", , Values, "AccountID", strAccountId)
If boolSaveValidation = False Then
objOperationBtn.SettingTransStatus = prjControlPanel.RollBack
UpdateExistingRec = False
Else
If Not txtAccountID.Text = strAccountId Then
Values = "AccountID=" & Val(txtAccountID.Text)
boolSaveValidation = objOperationBtn.SaveRecThroughSql(prjControlPanel.Update,
"GeneralJournalDetail", , Values, "AccountID", strAccountId)
If boolSaveValidation = True Then
boolSaveValidation = objOperationBtn.SaveRecThroughSql(prjControlPanel.Update,
"GeneralLedger", , Values, "AccountID", strAccountId)
If boolSaveValidation = True Then
objOperationBtn.SettingTransStatus = prjControlPanel.Commit
UpdateExistingRec = True
Else
objOperationBtn.SettingTransStatus = prjControlPanel.RollBack
UpdateExistingRec = False
End If
Else
objOperationBtn.SettingTransStatus = prjControlPanel.RollBack
UpdateExistingRec = False
End If
Else
objOperationBtn.SettingTransStatus = prjControlPanel.Commit
UpdateExistingRec = True
End If
End If
Exit Function
errhandler:
Call objOperationBtn.ErrHandlerProcedure
End Function
intRow = 1
FlexGridCOA.Clear
FlexGridCOA.Rows = 2
FlexGridCOA.Cols = 4
FlexGridCOA.RowHeight(0) = 420
FlexGridCOA.FormatString = "^ S.No |^Account No.| Account Description |
Account Type "
Do While rsDetail.EOF = False
For intCol = 0 To 2
If intCol < 2 Then
If intCol = 0 Then FlexGridCOA.TextMatrix(intRow, intCol) = intRow
If IsNull(rsDetail.Fields(intCol)) Then
strVarHolder = ""
FlexGridCOA.TextMatrix(intRow, intCol + 1) = strVarHolder
Else
FlexGridCOA.TextMatrix(intRow, intCol + 1) = rsDetail.Fields(intCol)
End If
Else
If IsNull(rsDetail.Fields(intCol)) Then
strVarHolder = ""
FlexGridCOA.TextMatrix(intRow, intCol + 1) = strVarHolder
Else
FlexGridCOA.TextMatrix(intRow, intCol + 1) = rsDetail.Fields(intCol)
End If
End If
Next
intRow = intRow + 1
FlexGridCOA.Rows = FlexGridCOA.Rows + 1
rsDetail.MoveNext
Loop
rsDetail.MoveFirst
Exit Sub
errhandler:
Call objOperationBtn.ErrHandlerProcedure
End Sub
Option Explicit
Dim objOperationBtn As prjControlPanel.clsControlPanel
Screen.MousePointer = vbHourglass
SQL = "SELECT * FROM GeneralLedger INNER JOIN FinancialYear ON
GeneralLedger.Dated >= FinancialYear.StartingDate AND GeneralLedger.Dated <=
FinancialYear.EndingDate where GeneralLedger.TransactionDrescription = 'Balance c/d'"
Set rsTemp = objOperationBtn.ExternalRecordSet(SQL)
Do While rsTemp.EOF = False
'Balance = rsTemp.Fields(0) - rsTemp.Fields(1)
Values = 0
Values = Values & "," & rsTemp.Fields(1)
Values = Values & ",'" & dtStartDate.value & "'"
Values = Values & ",''"
Values = Values & ",'" & "Balance b/d" & "'"
If rsTemp.Fields(5) > 0 Then
Values = Values & "," & 0
Values = Values & "," & rsTemp.Fields(5)
ElseIf rsTemp.Fields(6) > 0 Then
Values = Values & "," & rsTemp.Fields(6)
Values = Values & "," & 0
End If
Call objOperationBtn.SaveRecThroughSql(prjControlPanel.Insert, "GeneralLedger", ,
Values)
rsTemp.MoveNext
Loop
rsTemp.Close
Set rsTemp = Nothing
Call objOperationBtn.SaveRecThroughSql(prjControlPanel.Delete, "FinancialYear")
Call objOperationBtn.SaveRecThroughSql(prjControlPanel.Insert, "FinancialYear", , "'1'," &
"'" & dtStartDate.value & "'," & "'" & dtEndDate.value & "'")
Call objOperationBtn.SaveRecThroughSql(prjControlPanel.Insert, "FinancialYear", , "'2'," &
"'" & dtStartDate.value & "'," & "'" & dtEndDate.value & "'")
Screen.MousePointer = vbDefault
End Sub
Option Explicit
'Dim objGrid As PrjFlexGrid.clsFlexGrid
Dim objOperationBtn As prjControlPanel.clsControlPanel
Dim rsDetail As ADODB.Recordset
Dim strDescription As String
Dim boolAdd As Boolean
Dim boolFind As Boolean
Dim boolDeactivateWin As Boolean
Screen.MousePointer = vbHourglass
boolFormValidation = ValidateForm
If boolFormValidation = True Then
If boolAdd = True Then
boolSaveStatus = AddNewRec
' Else
' boolSaveStatus = UpdateExistingRec
End If
If boolSaveStatus = True Then
Call objOperationBtn.DisablingBtns("cmdSave,cmdUndo", frm)
Call
objOperationBtn.EnablingBtns("cmdAdd,cmdFind,cmdPrint,cmdNext,cmdPrevious,cmd1st,cmd
Last", frm)
Call FlexGridGJ.HideInputBoxes
If boolAdd = True Then
Call objOperationBtn.GoLast
' Set rsTemp = objOperationBtn.ExternalRecordSet("Select * From FinancialYear")
Call InsertPanel
Frame2.Enabled = False
boolAdd = False
Else
Call objOperationBtn.BookMarkRec
End If
cboFague.Text = cboReference.Text
lblShowStatus.Left = 1440
lblShowStatus.Caption = "Record Saved"
cboFague.Visible = True
cboReference.Visible = False
FlexGridGJ.GridStatus = False
Else
lblShowStatus.Left = 1250
lblShowStatus.Caption = "Record Not Saved"
End If
End If
' If rsTemp.State = adStateOpen Then rsTemp.Close
' Set rsTemp = Nothing
Screen.MousePointer = vbDefault
End Sub
If ColumnNumber = 3 Then
strDescription = value
ElseIf ColumnNumber = 4 Then
If IsNumeric(value) Or value = "" Then
txtTotalDebit.Text = Val(txtTotalDebit.Text) -
Val(FlexGridGJ.TextMatrix(FlexGridGJ.Row, 4))
txtTotalDebit.Text = Val(txtTotalDebit.Text) + Val(value)
If txtTotalDebit.Text = 0 Then
txtTotalDebit.Text = ""
End If
FlexGridGJ.AvoidMovingCtrl = False
Else
MsgBox "Please enter Numeric Value in this Column", vbInformation, "Invalid Value"
FlexGridGJ.AvoidMovingCtrl = True
End If
ElseIf ColumnNumber = 5 Then
If IsNumeric(value) Or value = "" Then
txtTotalCredit.Text = Val(txtTotalCredit.Text) -
Val(FlexGridGJ.TextMatrix(FlexGridGJ.Row, 5))
txtTotalCredit.Text = Val(txtTotalCredit.Text) + Val(value)
If txtTotalCredit.Text = 0 Then
txtTotalCredit.Text = ""
End If
FlexGridGJ.AvoidMovingCtrl = False
Else
MsgBox "Please enter Numeric Value in this Column", vbInformation, "Invalid Value"
FlexGridGJ.AvoidMovingCtrl = True
End If
End If
End Sub
End Sub
Call objOperationBtn.DeactivateRecordset
Call objOperationBtn.ClosingConnection
objOperationBtn.MakingConnection ("Provider=SQLOLEDB.1;Integrated
Security=SSPI;Persist Security Info=False;Initial Catalog=Habib Bank Accounts")
Values = Val(txtGJournalID.Text)
Values = Values & ",'" & cboReference.Text & "'"
Values = Values & ",'" & dtDate.value & "'"
objOperationBtn.SettingTransStatus = prjControlPanel.Begin
boolSaveValidation = objOperationBtn.SaveRecThroughSql(prjControlPanel.Insert,
"GeneralJournal", "GJournalID,Reference,Dated", Values)
If boolSaveValidation = True Then
' intTemp = FlexGridGJ.CountPopulatedRowsOnGrid
boolSaveValidation = False
For intRow = 1 To FlexGridGJ.Rows - 2
Values = Val(txtGJournalID.Text)
Values = Values & "," & Val(FlexGridGJ.TextMatrix(intRow, 1))
Values = Values & ",'" & dtDate.value & "'"
Values = Values & ",'" & FlexGridGJ.TextMatrix(intRow, 3) & "'"
' If objGrid.TakingValuesFromGrid(intRow, 3) <> "" Then
' DebitNum = DebitNum + 1
' End If
' If objGrid.TakingValuesFromGrid(intRow, 4) <> "" Then
' CreditNum = CreditNum + 1
' End If
Values = Values & "," & VBA.Format(Val(FlexGridGJ.TextMatrix(intRow, 4)), ".00")
Values = Values & "," & VBA.Format(Val(FlexGridGJ.TextMatrix(intRow, 5)), ".00")
boolSaveValidation = objOperationBtn.SaveRecThroughSql(prjControlPanel.Insert,
"GeneralJournalDetail", "GJournalID,AccountID,Dated,TransactionDrescription,Debit,Credit",
Values)
If boolSaveValidation = False Then
objOperationBtn.SettingTransStatus = prjControlPanel.RollBack
Exit Function
End If
Next
boolSaveValidation = EntryInLedger(intRow, Values, boolSaveValidation)
If boolSaveValidation = True Then
objOperationBtn.SettingTransStatus = prjControlPanel.Commit
AddNewRec = True
End If
Else
objOperationBtn.SettingTransStatus = prjControlPanel.RollBack
End If
Exit Function
errhandler:
Call objOperationBtn.ErrHandlerProcedure
End Function
' End If
Next
intRow = intRow + 1
FlexGridGJ.Rows = FlexGridGJ.Rows + 1
rsDetail.MoveNext
Loop
'rsDetail.Filter = adFilterNone
Exit Sub
errhandler:
Call objOperationBtn.ErrHandlerProcedure
End Sub
Option Explicit
Dim objOperationBtn As prjControlPanel.clsControlPanel
Option Explicit
Dim Report As Object
Dim objOperationBtn As New prjControlPanel.clsControlPanel
Option Explicit
Dim bCOA As Boolean
Dim objOperationBtn As prjControlPanel.clsControlPanel
Dim rsDetail As ADODB.Recordset
End Sub
If KeyCode = 13 Then
If objOperationBtn.VarifyFindingRec("ChartOfAccount", "AccountId",
txtFindAccountID.Text) = True Then
Call frmGJ.TakeAccountID(txtFindAccountID.Text)
Unload Me
End If
End If
If IsNumeric(txtFindAccountID.Text) Then
'Dim rsDetail As ADODB.Recordset
'Set rsDetail = objoperationbtn.TakeRsDetail
' Set rsDetail = objOperationBtn.ExternalRecordSet("Select * From ChartOfAccount")
i = Len(txtFindAccountID.Text)
If Not rsDetail.EOF Then
rsDetail.MoveFirst
FlexGridShowAccounts.Clear
FlexGridShowAccounts.Rows = 2
FlexGridShowAccounts.Cols = 4
FlexGridShowAccounts.RowHeight(0) = 420
FlexGridShowAccounts.FormatString = "^ S.No |^Account No.| Account
Description | Account Type "
Do While Not rsDetail.EOF
If Left$(rsDetail.Fields(0), i) = txtFindAccountID.Text Then
intRow = intRow + 1
FlexGridShowAccounts.Rows = FlexGridShowAccounts.Rows + 1
FlexGridShowAccounts.TextMatrix(intRow, 0) = intRow
FlexGridShowAccounts.TextMatrix(intRow, 1) = rsDetail.Fields(0)
FlexGridShowAccounts.TextMatrix(intRow, 2) = rsDetail.Fields(1)
FlexGridShowAccounts.TextMatrix(intRow, 3) = rsDetail.Fields(2)
End If
rsDetail.MoveNext
Loop
rsDetail.MoveFirst
' Call PopulateGrid(rsDetail)
Else
FlexGridShowAccounts.Clear
FlexGridShowAccounts.Cols = 4
FlexGridShowAccounts.RowHeight(0) = 420
FlexGridShowAccounts.FormatString = "^ S.No |^Account No.| Account
Description | Account Type "
End If
End If
If KeyCode = 27 Then Unload Me
End Sub
Option Explicit
Option Explicit
Public frm As Object
Public AdminLoginSucceeded As Boolean
Public strRpt As String
Public QryMaster As String
Public QryDetail As String
'Public strDSN As String
Public dtStartingDate As Date
Public dtEndingDate As Date
'Public strProjectName As String
msg = MsgBox("Are you sure you want to close a year?", vbYesNo + vbExclamation,
"Closing Year")
If msg = vbYes Then
Set objOperationBtn = New prjControlPanel.clsControlPanel
objOperationBtn.MakingConnection ("Provider=SQLOLEDB.1;Integrated
Security=SSPI;Persist Security Info=False;Initial Catalog=Habib Bank Accounts")
Screen.MousePointer = vbHourglass
Set rsTemp = objOperationBtn.ExternalRecordSet("Select * From FinancialYear")
dtStartingDate = rsTemp.Fields(1)
dtFiscalYearClosingDate = rsTemp.Fields(2)
rsTemp.Close
Set rsTemp = Nothing
SQL = "SELECT SUM(GeneralLedger.Debit)-
SUM(GeneralLedger.Credit),ChartOfAccount.AccountID FROM ChartOfAccount INNER JOIN
GeneralLedger ON ChartOfAccount.AccountID = GeneralLedger.AccountID Where
GeneralLedger.Dated >= '" & dtStartingDate & "' And GeneralLedger.Dated <= '" &
dtFiscalYearClosingDate & "' GROUP BY ChartOfAccount.AccountID "
Set rsTemp = objOperationBtn.ExternalRecordSet(SQL)
' dtClosingDate = InputBox("Please enter Closing Date", "Enter Date", Date)
' If Not IsDate(dtClosingDate) Then
' MsgBox "Please enter correct Date VBA.Format", vbInformation, "Invalid Date
VBA.Format"
' Screen.MousePointer = vbDefault
' Exit Sub
' End If
Do While rsTemp.EOF = False
'Balance = rsTemp.Fields(0) - rsTemp.Fields(1)
Values = 0
Values = Values & "," & rsTemp.Fields(1)
The following tasks were divided among the ywo group members in the following ways.
Websites consulted:
http://www.me.umn.edu/courses/me4054/assignments/gantt.pdf
http://www.netmba.com/operations/project/gantt/
http://www.netmba.com/operations/project/pert/
www.google.com.pk
www.yahoo.com
www.cisco.com
BIBLIOGRAPHY
Wesley 1995
GLOSSARY
account: An accounting record in which the results of transactions are accumulated; shows
increases, decreases, and a balance.
accounting cycle: The procedures for analyzing, recording, classifying, summarizing, and
reporting the transactions of a business.
accounting model: The basic accounting assumptions, concepts, principles, and procedures that
determine the manner of recording, measuring, and reporting an entity's transactions.
accounting system: The set of manual and computerized procedures and controls that provide
for identifying relevant transactions or events; preparing accurate source documents, entering
data into the accounting records accurately, processing transactions accurately, updating master
files properly, and generating accurate documents and reports.
account payable: An amount owed to a supplier for good or services purchased on credit;
payment is due within a short time period, usually 30 days or less.
account receivable: A current asset representing money due for services performed or
merchandise sold on credit.
accrued liabilities: Liabilities that arise through adjusting entries when accounting for
unrecorded liabilities.
accumulated depreciation: The total depreciation recorded on an asset since its acquisition; a
contra account deducted from the original cost of an asset on the balance sheet.
acid-test ratio (or quick ratio): A measure of a firm's ability to meet current liabilities; more
restrictive than the current ratio, it is computed by dividing net quick assets (all current assets,
except inventories and prepaid expenses) by current liabilities.
annual report: A document that summarizes the results of operations and financial status of a
company for the past year and outlines plans for the future.
annuity: A series of equal amounts to be received or paid at the end of equal time intervals.
audit: The result of an independent accountant's review of the statements and footnotes to ensure
compliance with generally accepted accounting principles and to render an opinion on the
fairness of the financial statements.
audit report: A report issued by an independent CPA that expresses an opinion about whether
the financial statements present fairly a company's financial position, operating results, and cash
flows in accordance with generally accepted accounting principles.
authorized stock: The amount and type of stock that may be issued by a company, as specified
in its articles of incorporation.
available-for-sale securities: Debt and equity securities not classified as trading, held-to-
maturity, or equity method securities.
balance sheet (statement of financial position): The financial statement that shows the assets,
liabilities, and owners' equity of an entity at a particular date.
bank reconciliation: The process of systematically comparing the cash balance as reported by
the bank with the cash balance on the company's books and explaining any differences.
basket purchase: The purchase of two or more assets acquired together at a single price.
book value: The net amount shown in the accounts for an asset, liability, or owners' equity item.
business: An organization operated with the objective of making a profit from the sale of goods
or scalendar year: An entity's reporting year, covering 12 months and ending on December 31.
capital: The total amount of money or other resources owned or used to acquire future income or
benefits.
capital stock: The portion of a corporation's owners' equity contributed by investors (owners) in
exchange for shares of stock.
cash: Coins, currency, money orders, checks, and funds on deposit with financial institutions;
the most liquid of assets.
cash-basis accounting: A system of accounting in which transactions are recorded and revenues
and expenses are recognized only when cash is received or paid.
charter (articles of incorporation): A document issued by a state that gives legal status to a
corporation and details its specific rights, including the authority to issue a certain maximum
number of shares of stock.
classified balance sheet: A balance sheet in which assets and liabilities are subdivided into
current and noncurrent categories.
comparative financial statements: Financial statements in which data for two or more years are
shown together.
consolidated financial statements: Statements that report the combined operating results,
financial position, and cash flows of two or more legally separate but affiliated companies as if
they were one economic entity.
contingent liability: A potential obligation, dependent upon the occurrence of future events.
current (or working capital) ratio: A measure of the liquidity of a business; equal to current
assets divided by current liabilities.
date of record: The date selected by a corporation's board of directors on which the shareholders
of record are identified as those who will receive dividends.
deduction: Business expenses or losses that are subtracted from gross income in
benefited.
discounting a note receivable: The process of the payee's selling notes to financial institution
for less than the maturity value.
fair market value: The current value of an asset, e.g., the amount at which an asset could be
sold or purchased in an arm's-length transaction.
financial accounting: The area of accounting concerned with reporting financial information to
interested external parties.
financial statements: Reports such as the balance sheet, income statement, and statement of
cash flows, which summarize the financial status and results of operations of a business entity.
financing activities: Transactions and events whereby resources are obtained from, or repaid to,
owners (equity financing) and creditors (debt financing).
floor: The minimum market amount at which inventory can be carried on the books; equal to net
realizable value minus a normal profit.
journal: An accounting record in which transactions are first entered; provides a chronological
record of all business activities.
journal entry: A recording of a transaction where debits equal credits; usually includes a date
and an explanation of the transaction.
LCM (lower cost or market): A basis for valuing certain assets at the lower of original cost or
current market value.
lease: A contract that specifies the terms under which the owner of an asset (the lessor) agrees to
transfer the right to use the asset to another party (the lessee).
ledger: A book of accounts in which data from transactions recorded in journals are posted and
thereby classified and summarized.
legal capital: The amount of contributed capital not available for dividends; usually equal to the
par or stated value of outstanding capital stock.
liabilities: Obligations measurable in monetary terms that represent amounts owed to creditors,
governments, employees, and other parties.
loss per share: The amount of net loss related to each share of stock; computed by dividing net
loss by a number of shares of common stock outstanding during the period.
natural resources: Assets that are physically consumed or waste away, such as oil, minerals,
gravel, and timber.
net assets (owners' equity): The ownership interest in the assets of an entity; equal total assets
minus total liabilities.
net income (or net loss): A measure of the overall performance of a business entity; equal to
revenues minus expenses for the period.
operating assets: Long-term, or noncurrent, assets acquired for use in the business rather than
for resale; includes property, plant, and equipment; intangible assets; and natural resources.
owners' equity (net assets): The ownership interest in the assets of an entity; equal total assets
minus total liabilities.
realized gains and losses: Gains and losses resulting from the sale of securities in an arm's
length transaction.
treasury stock: Issued stock that has subsequently been reacquired by the corporation.
trial balance: A listing of all account balances; provides a means of testing whether total debits
equal total credits for all accounts.