0% found this document useful (0 votes)
177 views2 pages

Accounting System Project Steps With Code

The document outlines the steps to create an accounting system using Visual C# and SQLite, including setting up the development environment, creating a database, and designing various forms for user interaction. It also provides SQL code for creating necessary database tables such as Users, Clients, Products, Invoices, InvoiceItems, and Payments. Finally, it emphasizes the importance of testing the application and preparing documentation for presentation.

Uploaded by

aieideh8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views2 pages

Accounting System Project Steps With Code

The document outlines the steps to create an accounting system using Visual C# and SQLite, including setting up the development environment, creating a database, and designing various forms for user interaction. It also provides SQL code for creating necessary database tables such as Users, Clients, Products, Invoices, InvoiceItems, and Payments. Finally, it emphasizes the importance of testing the application and preparing documentation for presentation.

Uploaded by

aieideh8
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Accounting System Project Steps using Visual C# and

SQLite
Step 1: Set Up the Development Environment - Install Visual Studio and create a new Windows Forms Application.
Step 2: Create SQLite Database - Name it accounting.db and add essential tables.
Step 3: Design Login Form (LoginForm) with Username/Password input and login validation.
Step 4: Create DashboardForm with navigation buttons to other forms.
Step 5: Build ClientsForm to manage client data (Add/Edit/Delete).
Step 6: Build ProductsForm to manage product data (Add/Edit/Delete).
Step 7: Build InvoicesForm to create invoices and calculate totals.
Step 8: Build InvoiceListForm to display and filter all invoices.
Step 9: Build PaymentsForm to record payments and calculate balances.
Step 10: Build ReportsForm to display revenue and profit reports.
Step 11: Test the application for correctness and functionality.
Step 12: Prepare final presentation, documentation, and upload to eLearning portal.

SQLite Database Schema SQL Code


-- Create Users Table
CREATE TABLE Users (
UserID INTEGER PRIMARY KEY AUTOINCREMENT,
Username TEXT NOT NULL,
Password TEXT NOT NULL,
Role TEXT
);

-- Insert default users


INSERT INTO Users (Username, Password, Role) VALUES
('admin', '12345', 'Admin'),
('mohamed', 'm123', 'Accountant'),
('ahmad', 'a123', 'Viewer');

-- Create Clients Table


CREATE TABLE Clients (
ClientID INTEGER PRIMARY KEY AUTOINCREMENT,
Name TEXT NOT NULL,
Phone TEXT,
Email TEXT
);

-- Create Products Table


CREATE TABLE Products (
ProductID INTEGER PRIMARY KEY AUTOINCREMENT,
Name TEXT NOT NULL,
Price REAL NOT NULL,
Quantity INTEGER NOT NULL,
Category TEXT
);

-- Create Invoices Table


CREATE TABLE Invoices (
InvoiceID INTEGER PRIMARY KEY AUTOINCREMENT,
ClientID INTEGER,
Date TEXT,
TotalAmount REAL,
FOREIGN KEY (ClientID) REFERENCES Clients(ClientID)
);

-- Create InvoiceItems Table


CREATE TABLE InvoiceItems (
ItemID INTEGER PRIMARY KEY AUTOINCREMENT,
InvoiceID INTEGER,
ProductID INTEGER,
Quantity INTEGER,
Price REAL,
FOREIGN KEY (InvoiceID) REFERENCES Invoices(InvoiceID),
FOREIGN KEY (ProductID) REFERENCES Products(ProductID)
);

-- Create Payments Table


CREATE TABLE Payments (
PaymentID INTEGER PRIMARY KEY AUTOINCREMENT,
InvoiceID INTEGER,
AmountPaid REAL,
PaymentDate TEXT,
FOREIGN KEY (InvoiceID) REFERENCES Invoices(InvoiceID)
);

You might also like