Why companies use one system for sales, purchasing, stock, projects, hours and bookkeeping, what open source ERP is, and a tour of ERPNext using real screens.
TimeOne day: about 4.5 hours of reading and 2 hours of assignments
You learnWhat an ERP system is and why companies use it, how ERPNext is built up, and how documents in ERPNext together form the sales chain, the purchasing chain, projects and the general ledger.
You doYou explore ERPNext in a trial environment or in the documentation, walk through the sales chain, describe five DocTypes, look at ERPNext on GitHub and draw the path from quotation to payment.
AssessmentAfter each part a short check with the result straight away. At the end of the day the exam: multiple-choice questions and a few open questions, marked by an assessor. And the assignment of the day.
Level
Part 1 What is an ERP system?
About 55 minutes
1. Back to yesterday: a company full of lists
Yesterday, on day 13, you saw how a construction company runs. An enquiry comes in, the estimator makes a cost estimate, the managing director sends a quotation. If the client says yes, it becomes a project. Material is bought, people record hours, subcontractors send bills and the company sends instalment invoices. At the end of the year everyone wants to know: did we make money, and on which project did we and on which did we not?
In many smaller companies, all of that happens in separate tools. The quotations are in a spreadsheet. The hours come in on paper slips or in a small app. The stock is kept in a notebook in the warehouse. The bookkeeper makes the invoices in a bookkeeping package. The client details are in the email address book. Each tool works fine on its own. The problem is in between: the same data is retyped again and again. That takes time and errors creep in. You see that picture on the left of figure 1.
Figure 1. On the left the company without ERP: six separate lists, and the orange dotted lines are the places where someone retypes data. On the right the company with ERP: all departments work in the same database. That is the whole idea of an ERP system in one picture.
On the right of the figure you see the alternative. All departments work in one system, with one shared database. Sales, purchasing, stock, projects, bookkeeping and HR look at the same data. Such a system is called an ERP system. Today you learn what that is, why companies use it and how one well-known open source ERP system works: ERPNext.
Tip This lesson is about ERP and ERPNext in general. Everything you learn today also applies to a company that has nothing at all to do with OpenAEC. Tomorrow, on day 15, you will see how ERPNext fits in with the OpenAEC apps and the SuperCloud. On day 18 you will set up ERPNext yourself.
2. What the letters ERP mean
ERP is short for Enterprise Resource Planning. Literally, that means planning the resources of an enterprise. That sounds vague, but it becomes clear when you look at the three words separately, as in figure 2.
Figure 2. The three words behind ERP. At the top what they mean; at the bottom the five resources a construction company has to keep track of. An ERP system records for all those resources what there is, what happens and what is planned.
Enterprise means business: the whole company, not one department. Resource means means or asset. For a construction company those are money, people, material, plant (such as a crane or a van) and time. Planning means you do not only keep track of those resources, but also look ahead with them: who works where next week, which material still has to be ordered, which invoices are coming?
So an ERP system is software in which a company keeps track of all its business operations. You can see it as the administrative heart of the company. A drawing package or a calculation program is a tool for one discipline. The ERP is the system where all disciplines come together when it comes to money, people and things.
ERP system
Software in which a company keeps track of all its business operations: sales, purchasing, stock, projects, hours, HR and bookkeeping, in one shared database.
3. One database for the whole company
Figure 3. On day 13 you saw how a construction company runs. This diagram shows the bridge to today: all those flows of work, money and material come together in one system with one database.
On day 9 you learnt what a database is: an ordered collection of data that a computer program can search and update quickly. The most important feature of an ERP system is that all departments work in the same database. There is only one client list, one item list, one list of projects and one set of books.
Why does that matter so much? Suppose the managing director of Bouwbedrijf Rijnmond, the fictional company you know from day 1, asks: "What are we earning on project De Linde?" In a company without ERP, someone then has to ask around. The hours are with the site manager, the receipts in a folder, the invoices with the bookkeeper and the extra work in the project leader's email. After a week there is an answer, and it is usually not quite right. In an ERP system all that data is already in one place. The answer is one report, as you see in figure 4.
Figure 4. The same question, two companies. On the left someone has to put four sources together. On the right the answer is in one report, because hours, purchasing and invoices are all in the same database. The amounts are made up.
It works the other way round too: data that one department enters is immediately visible to the other. When the warehouse books a delivery, the salesperson sees that the order has been delivered. When the bookkeeper processes a payment, the project leader sees that the client has paid. In figure 5 you see a real list from ERPNext. For each sales order you see what percentage has been delivered and what percentage invoiced. Those percentages come from the warehouse and from the bookkeeping, but you simply see them in the salesperson's list.
Figure 5. A list of sales orders in ERPNext (demo data in dollars). The green bars show how much has already been delivered and invoiced. That information comes from other departments, but it is in the same database and therefore in the same overview. Source: ERPNext documentation (docs.frappe.io).
4. Entering it once
The second big advantage follows directly from the first: you enter an item of data once. You type a client's address on the client record. After that, every document fetches the address from there: the quotation, the order confirmation, the invoice and the reminder. Nobody has to type it again. Figure 6 shows what happens if you do keep typing it again.
Figure 6. Top: the same address typed five times, and twice it goes wrong. Bottom: the address is on the client record once and all documents fetch it from there. Change the address, and it is right everywhere at once.
That seems like a small advantage, but it adds up. A typo in an address means an invoice that does not arrive and a payment that is late. A wrong item number means the wrong things are ordered. An hour that is entered twice is also invoiced twice, and the client notices. The more often data is retyped, the more of these errors arise. An ERP system removes those retyping points.
Figure 7 shows what the client record looks like in ERPNext. The Address and Contact tab shows the client's billing address, delivery address and contacts. When you make a quotation or invoice for this client, ERPNext fills in those details by itself.
Figure 7. The client record in ERPNext, Address and Contact tab (Address & Contact). There are two addresses: one for invoices (Billing) and one for deliveries (Shipping), and two contacts. This is made-up demo data. Source: ERPNext documentation (docs.frappe.io).
5. Linking processes together
The third advantage is that an ERP system ties processes together. A process is a fixed series of steps that comes back again and again, such as "from quotation to payment" or "from order to paid purchase invoice". In an ERP system each step is a document, and you make the next document from the previous one. That way the system knows which steps have already been taken and which are still to come.
And one action often has several effects. Look at figure 8. The warehouse books a delivery. At the same moment the stock goes down, the sales order sees that something has been delivered, the cost price is booked in the bookkeeping and the invoice is ready to be made, with exactly the quantities delivered. Nobody has to send an email for that.
Figure 8. One action, four effects. Because everything is in one system, the ERP updates the other departments by itself. In a company with separate lists, that is four emails, four rounds of retyping and four chances of an error.
In ERPNext you see this in the Create button (Maken on Dutch screens) at the top of every document. From a sales order you can make a delivery, a sales invoice or a payment with one click. The new document takes over the client, the items, the quantities and the prices. You see that in figure 9.
Figure 9. A sales order in ERPNext with the Create menu open. Circled in red is the option Sales Invoice. The menu also shows which documents can follow a sales order: a delivery, a purchase order, a project or a payment. Source: ERPNext documentation (docs.frappe.io).
6. What an ERP is not
An ERP system does a lot, but not everything. On day 10 you saw that software in a construction company sits in layers, as in figure 10. At the bottom the foundation of computers, network and accounts. Above that the basics everyone uses every day: email, calendar and documents. Above that business operations, and that is where the ERP sits. On top is the specialist software: drawing, modelling, calculating, estimating and scheduling.
Figure 10. The layers of software in a construction company, from the day 10 lesson. The ERP is in the business operations layer: projects, hours, purchasing, invoices and bookkeeping. Drawing and calculating happen in the layer above, with other tools.
So an ERP system does not make drawings and does not check structures. Nor is it an email program or storage for construction drawings, although you can attach files to documents. What it does do is keep track of everything to do with money, people, things and agreements. The specialist software sometimes supplies data for it, for example a cost estimate that becomes the basis of a quotation. As a consultant you must know that boundary well. Clients sometimes expect an ERP to do "everything". Then it is your job to explain what belongs in it and what does not.
Note An ERP system is only as good as the data in it. If employees do not fill in their hours or make purchases outside the system, the report in figure 4 will not be right either. Introducing an ERP is therefore always half technology and half agreements with people.
In depth
What does retyping actually cost?
Take an installation company with 25 people. Every week the administration retypes the fitters' hours from slips into a spreadsheet, and then from the spreadsheet into the invoices. Together that takes about six hours a week. On top of that, purchase receipts are retyped (three hours a week) and addresses and items in quotations (two hours a week). That is eleven hours a week, more than five hundred hours a year. At an hourly rate for the administration of 45 euros including all costs, that is more than 23,000 euros a year, not counting the cost of the errors.
Figure 11. The installation company's calculation. Eleven hours of retyping a week seems little, but over a year it is more than 23,000 euros. Do such a calculation together with a client: then the advantage of an ERP becomes concrete.
Errors often cost more than the retyping itself. A forgotten extra work invoice of a few thousand euros, a purchase invoice paid twice, or an instalment invoiced three months late: you see that kind of error in almost every company with separate lists. In a conversation with a client it is smart to do such a calculation together. Then the advantage of an ERP becomes concrete, in euros instead of fine words.
Check: part 1
See whether you have grasped the core of this part. The check does not count towards your exam; you can take it as often as you like.
Part 2 History and kinds of ERP
About 40 minutes
7. A short history
ERP was not invented in one go. It grew over sixty years, and each step added a part of the company. Figure 12 shows the broad outline.
Figure 12. From stock list to cloud ERP. Each step added a part of the company. The idea always stayed the same: one place for the data, so that nobody has to retype.
In the 1960s, large factories got their first computers. They were as big as a room and very expensive. One of the first things companies did with them was keep track of their stock. In the 1970s MRP was added, which stands for Material Requirements Planning: planning material. The computer worked out which parts a factory had to order to be able to make a certain number of products on time.
Figure 13. An MRP calculation in miniature. The system works out what is needed, subtracts the stock and plans the order back from the delivery time. A computer does this for thousands of parts at once.
In the 1980s that became broader. With MRP II the computer also looked at machines, people and money. Around 1990 a research firm came up with the name ERP for systems that cover the whole company, including the bookkeeping, sales and HR. In the 1990s such systems were sold to large companies, often in projects that took years and cost millions.
From 2000 the internet arrived. ERP systems became web applications: you work in them via the browser, as you learnt on day 8. From about 2010 came the cloud: you no longer buy the system, but rent it per user per month. In the same period the open source ERP systems grew, of which ERPNext is one of the best known. This made a fully fledged ERP within reach of small companies too, such as a contractor with twenty people or an engineering firm with ten.
8. Closed or open source
There are hundreds of ERP systems. You can group them in a few ways. The first grouping is about the source code: the text in which programmers wrote the software. On day 1 you already learnt what open source is. Figure 14 lists the difference for ERP systems.
Figure 14. Closed software versus open source, on five points. At the bottom is an important caveat: open source costs money too, just not for licences.
With closed software the source code is secret. Only the maker can read and change it. You pay for a licence: a fee for the right to use the software, often per user per year. If you want something changed, you have to go to the maker or one of its approved partners. And if you want to stop, it is often hard to take your data with you in a usable form. That is called lock-in: you are stuck with the supplier. You know that term from day 10.
Figure 15. From the day 10 lesson: the four ways in which a company gets stuck. With an ERP system the "data" lock weighs extra heavily, because it holds the entire administration.
With open source the source code is public. Anyone may read, use, change and pass it on, according to the rules of the licence. There are no licence costs per user. If you want a change, you can have it made by any party that knows the system. And if you stop working with your current partner, you simply take your database and the code with you to another partner.
That does not mean open source is free. Someone has to run the server, set up the system, transfer the data, train the people and help when something goes wrong. That costs money and time. The difference is that you pay for work and not for the right to use software. And that you choose yourself who does that work.
9. Cloud, partner or own server
The second grouping is about where the system runs. On day 9 you learnt what a server and the cloud are. For an ERP there are roughly three options. You see them side by side in figure 16.
Figure 16. Three places where an ERP can run. The middle one, at a partner, is common in practice for open source systems. ERPNext can run in all three ways.
The first option is the maker's cloud. This is also called SaaS, from Software as a Service. You rent an environment, log in via the browser and the maker takes care of the server, the backups and the updates. That is easy, but you have less say over when something changes.
The second option is hosting at a partner. A specialised company puts the system on a server in a data centre for you. You have your own environment, and the partner manages it. Updates are planned, in consultation. The third option is an own server, also called on-premise: the system runs on a computer in your own office or your own server room. Then you have everything in your own hands, but you also have to do everything yourself: backups, security and updates. For most companies of a few to a few hundred people, that is too much work.
10. Configure, customise or bespoke
The third grouping is about how far you adapt the system to the company. Every company thinks it is unique, and every company really does have its own habits. But most processes are roughly the same in all companies: a quotation is a quotation and an invoice is an invoice. That is why good consultants distinguish three steps, as in figure 17.
Figure 17. The staircase of adapting. The higher you go, the more is possible, but also the more maintenance it needs with every new version of the system. That is why you always start at the bottom.
On the first step you configure. You fill in what the company is, which accounts the bookkeeping uses, which VAT rates apply and how documents are numbered. That always has to be done. On the second step you customise without code. You add a field of your own, for example "plot number" on a sales order. You make your own print format with the company's logo. You build a simple approval step. All of that can be done through screens, without programming.
On the third step you write bespoke code: new functions in code. With ERPNext you do that as your own app on the same framework, so that ERPNext itself stays untouched. That is powerful, but it has to be tested and sometimes adjusted with every new version. The rule of thumb is: as much as possible on steps one and two, and only go to step three if there really is no other way. On day 18 you will do step one yourself.
In depth
Industry solutions
Besides general ERP systems, there are ERP systems for one industry, for example especially for contractors, installers or wholesalers. They already have the typical concepts of that industry built in, such as specification items, instalment statements or cost reviews. That saves setup work. The downside is that they are smaller: fewer users, fewer partners and often a closed licence. A general system such as ERPNext can also be tailored to an industry with settings and an app of your own. A collection of settings, custom fields and reports for one industry is often called an industry setup or template.
Figure 18. An industry solution can also be a layer on top of a general system. The basis is the same for everyone; only what is really different per industry goes on top.
As a consultant you will regularly be asked: "Isn't there something special for our kind of company?" A good answer weighs three things: how much of the work is really different from other companies, who will maintain the special parts in five years' time, and can the company take its data with it if it ever wants to switch?
Expert
Calculate five years ahead
Companies often compare ERP systems on the price per month. It is better to calculate the total costs over five years. For a company with 30 users, make a table with these rows: licences per year, hosting per year, the initial setup, transferring data, training, support per year, customisations, and the costs of switching at the end. Fill in two columns: a closed system with licences of 80 euros per user per month, and an open source system at a partner with 600 euros of hosting and management per month. Choose reasonable amounts for the setup and the training yourself, the same for both. Calculate the total after five years. Then think about which costs you cannot express in euros, such as the freedom to change partner.
Figure 19. The same kind of calculation from the day 10 lesson, for all the software of an engineering firm. Do this for an ERP system too: licences, hosting, setup and management, added up over five years.
Check: part 2
See whether you have grasped the core of this part. The check does not count towards your exam; you can take it as often as you like.
Part 3 Frappe and ERPNext
About 45 minutes
11. Frappe: the company and the community
ERPNext is made by Frappe, a software company from Mumbai in India. The work started around 2008. The makers wanted an ERP system that is easy to use, for small and medium-sized companies, and that anyone may use freely. They made it open source. Today thousands of companies around the world use ERPNext, in all kinds of industries: manufacturing, trade, services, education, healthcare and construction too.
Frappe does not earn its money with licences, but with services. The company rents out environments in its own cloud, Frappe Cloud, and helps large clients with support. On top of that there are hundreds of partners worldwide: companies that set up, host and customise ERPNext for their clients. And there is a large community (in Dutch gemeenschap) of users and programmers who answer questions, report bugs and submit improvements. Figure 20 shows the ERPNext home page on the Frappe website.
Figure 20. The ERPNext page on the Frappe website. With the Start free trial button you can create a trial environment yourself; you will do that in today's assignment. At the top is the newest major version, version 16. Source: frappe.io
About once a year a new major version of ERPNext comes out, with new features and sometimes big changes. In between, smaller updates with improvements and bug fixes come out every few weeks. A company does not have to move to a new major version straight away. A partner often waits a few months, until the first bugs have been ironed out.
12. The Frappe Framework
Under ERPNext lies a foundation: the Frappe Framework. A framework is a construction kit for programmers. It contains all the parts every business web application needs, so you do not have to build them again each time: logging in, users and permissions, screens with lists and forms, search, reports, printing to PDF, email and an interface through which other software can read and write data. Figure 21 shows the page of the framework.
Figure 21. The page of the Frappe Framework. It is written in the programming languages Python and JavaScript. At the bottom you can already see a few terms you will come across shortly, such as DocType and Report. Source: frappe.io
So ERPNext is really an app that runs on top of the Frappe Framework. And it is not the only one. Frappe makes more apps on the same framework, such as Frappe HR for HR and payroll, Frappe CRM for winning clients and Helpdesk for client questions. Other companies also build their own apps on it. All those apps can run side by side in the same environment and then share the same database. Figure 22 shows how the layers sit on top of each other.
Figure 22. The Frappe stack. At the bottom the server and the database. On that the framework, with the building blocks all apps share. On that the apps, of which ERPNext is the best known. At the top the ways in which people and other software work with the system. The bench tool installs and manages all of this.
For you as a consultant this matters for two reasons. First, everything you learn about the framework, such as DocTypes, permissions and reports, works the same way in every Frappe app. Second, a company that is missing something can have its own app built on the same framework. That is the third step of figure 17.
13. ERPNext is open source, under GPL-3.0
The source code of ERPNext is public on GitHub. On day 11 you learnt what GitHub is: a website where programmers store code, keep track of versions and work together. Figure 23 shows the ERPNext page on GitHub.
Figure 23. The frappe/erpnext repository on GitHub. On the right under About is the licence: GPL-3.0. At the top you see the Issues tab (reports of bugs and wishes) and the Pull requests tab (proposals for improvements). With more than 40,000 stars it is one of the best-known open source ERP projects. Source: github.com
ERPNext is under the GPL-3.0 licence. GPL stands for GNU General Public License, and 3.0 is the version. In plain language the licence says three things. You may use the software for free, including in a company. You may change it. And if you distribute a changed version to others, you must also make it public under the same licence. That way the software always stays open. The Frappe Framework itself is under an even more permissive licence, the MIT licence.
What can you see on the GitHub page? Under Releases are the versions, with what has changed. Under Issues users report bugs and wishes; you can see how quickly they get a response. Under Pull requests programmers submit improvements, which are checked first before they are accepted. A lively repository with a lot of recent activity is a good sign: the project is being maintained. In today's assignment you will look at that yourself.
Tip Clients sometimes ask: "What if that company in India goes bankrupt?" With closed software that is a real risk. With ERPNext the code is public, under a licence that cannot be withdrawn. Other parties can then continue the maintenance. That is one of the strongest arguments for open source.
14. The modules of ERPNext
ERPNext is divided into modules. A module is a part of the system for one topic, with the documents, reports and settings that go with it. The modules all share the same database, as you see in figure 24.
Figure 24. The main modules of ERPNext around one database. A company does not have to use them all. An engineering firm mainly uses accounting, selling, projects and hours; a contractor also uses buying and stock.
Here is briefly what each module does. Accounting keeps the general ledger, the invoices, the payments, the VAT and the reports such as the balance sheet. Selling is about quotations and sales orders. Buying is about orders with suppliers. Stock keeps track of what is in which warehouse and what comes in and goes out. Projects is about projects, tasks and timesheets. CRM, from Customer Relationship Management, is about winning new clients: leads and opportunities.
Then there is HR and payroll for employees, leave, expense claims and salary slips. For a few years now that has been in a separate app, Frappe HR, which you install next to ERPNext. Manufacturing is for companies that make their own products, with bills of materials and work orders; think of a factory for prefab elements or window frames. Quality helps with quality checks and improvement actions. There are also smaller modules, for example for assets such as plant (Assets) and for customer service (Support). Figure 25 shows how Frappe itself presents the modules.
Figure 25. The modules of ERPNext on the Frappe website: accounting, procurement, sales, CRM, stock and manufacturing, and more further down. Source: frappe.io
You can set per user which modules he sees. Figure 26 shows the list of modules for a user. That way a fitter only sees what he needs, and not the whole bookkeeping. That makes the system calmer and prevents mistakes.
Figure 26. For a user you tick which modules he may see (Allow Modules). This list also shows the names of all modules in a row, from Accounts to Stock. Source: ERPNext documentation (docs.frappe.io).
15. The documentation
Every module comes with extensive documentation: explanations in text and images of how it works. It is public on docs.frappe.io/erpnext, in English. Figure 27 shows the home page. On the left are the contents per topic: setup, users and permissions, accounting, buying, selling, stock, projects and more. Many screenshots in this lesson come from that documentation.
Figure 27. The ERPNext documentation. On the left the contents per module, in the middle the introduction. This is where you look up how something works before you set it up at a client. There is also a forum, which you find via Discuss at the top. Source: docs.frappe.io
Get into the habit of looking in the documentation first with every question. Most clients' questions have been asked by someone else before. If the answer is not in the documentation, look on the community forum (discuss.frappe.io) or in the issues on GitHub. That way you learn quickly, and you give the client an answer that fits the way the system is meant to work.
Tip You can set the ERPNext screens to many languages, including Dutch. Not every word is equally well translated. That is why the Dutch version of this lesson often gives the Dutch and the English name side by side, for example verkoopfactuur (Sales Invoice). In the documentation and on the forum you always search for the English name.
In depth
More apps from the same family
Besides ERPNext, Frappe makes more open source apps on the same framework. Frappe HR handles employees, leave, absence, expense claims and payroll. Frappe CRM is a modern screen for salespeople to keep track of leads and deals; it can be linked to ERPNext, so that a deal that is won immediately becomes a client and a quotation. Helpdesk is for client questions and tickets. Insights is for reports and dashboards, Drive for files and LMS for online courses. On GitHub you will also find hundreds of apps from other companies and from the community, for example for countries with their own rules for VAT or payroll.
For a consultant this means: if a client is missing something in ERPNext, first check whether an app already exists for it, before anyone starts building something new. Do check that the app is well maintained and fits the version of ERPNext the client uses.
Expert
Bench, sites and apps
Figure 28. One bench on a server, with three sites. All sites use the same version of the framework and the apps, but each site has its own database. That way you can try things on a test site first.
Anyone who installs ERPNext on their own server works with the bench tool. That is a command-line program: you type commands in a terminal. A bench is also the name for a folder on the server with one version of the framework and a number of apps. Within a bench you can create several sites. Each site is a separate environment with its own database, for example one for each client, or a test environment next to the live environment. You install apps per site: on one site only ERPNext, on another ERPNext with Frappe HR.
A few examples of commands: bench new-site creates a new site, bench install-app erpnext puts ERPNext on a site, bench backup makes a backup of the database and the files, and bench update fetches new versions and updates everything. As a consultant you do not have to do this yourself; that is work for the hosting partner. But it helps if you understand what a site is, and why you try a change on a test site first.
Check: part 3
See whether you have grasped the core of this part. The check does not count towards your exam; you can take it as often as you like.
Part 4 A tour: the basic concepts of ERPNext
About 70 minutes
16. The screen: sidebar, workspaces and search
When you log in to ERPNext, you arrive in the Desk: the working environment in which you do everything. On the left is a sidebar with the parts of the system. If you click on a part, a workspace opens. A workspace is a home page for one topic, with shortcuts to the most important lists, reports and charts. Figure 29 shows the workspace of the Projects module.
Figure 29. The Projects workspace. At the top a chart, below it counters, then shortcuts (Your Shortcuts) and at the bottom all the lists and reports of this module, such as Project, Task, Timesheet and Activity Type. Source: ERPNext documentation (docs.frappe.io).
You can customise workspaces. A company can, for example, make a "Project leader" workspace with exactly the lists and reports a project leader needs every day. That is the second step of figure 17: customising without code.
At the top or in the sidebar is a search bar. In it you can search for a document, for example a client name or an invoice number, but also for a list ("sales invoice") or an action ("new quotation"). Experienced users work almost only with the search bar; the shortcut is Ctrl+K, in older versions Ctrl+G. Figure 30 shows schematically what a screen with one document looks like.
Figure 30. The parts of a document screen in ERPNext. Every document has the same layout. Once you know it, you can find your way in any screen, whether it is a quotation, a timesheet or a purchase invoice.
Go through the numbers. On the left the sidebar (1). At the top the breadcrumb (2): it shows where you are, for example Selling, then Quotation, then this one document. Below that the title and status (3), such as Draft or Submitted. Top right the buttons (4) to save, submit or make a next document. Below that the tabs (5) and the fields (6). Many documents also have a table with rows (7), such as the items on a quotation. On the right is a side panel (8) with which you assign a document to someone, add an attachment or give it a tag. At the bottom is the activity (9): who changed what and when, plus comments from colleagues.
17. DocType and document
The most important concept of the Frappe Framework is the DocType, short for document type. A DocType is the template for a kind of document. It describes which fields there are, what kind of data may go in them, which fields are mandatory and who may see it. "Customer" is a DocType, "Sales Invoice" is a DocType and "Timesheet" is a DocType. ERPNext consists of hundreds of DocTypes.
A document is one filled-in copy of such a template. The client "Woonstichting De Linde" (a housing association) is a document of the Customer DocType. Invoice number ACC-SINV-2026-00011 is a document of the Sales Invoice DocType. Compare it with a paper form: the empty form is the DocType, every filled-in form is a document. You see it in figure 31.
Figure 31. On the left the DocType: the template with empty fields. On the right the documents: filled-in copies. In a database a DocType is a table and each document is a row in that table. One DocType can have thousands of documents.
A field always has a type (field type). A text field for a name, a number field for a quantity, a currency field for money, a date field, a check box, a select list with fixed values, and a link field that points to another document. A red asterisk next to a field name means the field is mandatory. Without that field you cannot save the document. Figure 32 shows the quick entry screen for a new item, with a few mandatory fields.
Figure 32. Creating a new item via the quick entry screen. The fields with a red asterisk are mandatory: the item code, the item group and the unit. With Edit Full Form you open the full form with all tabs. Source: ERPNext documentation (docs.frappe.io).
Tip You can look at a DocType in ERPNext yourself. Type "DocType" in the search bar and open Customer, for example. You will then see all the fields of the template one below the other. You will do that in the assignment.
18. List view and form
You can look at every DocType in two ways. The list view shows all documents of one DocType one below the other, as a table. At the top are filters, so that you see, for example, only the invoices of one client, or only the unpaid ones. You can sort, choose columns and edit several documents at once with a tick. The form view shows one document with all its fields, spread over tabs. You see them side by side in figures 33 and 34.
Figure 33. The list view of the Supplier DocType. Each row is one document. With the button at the top right you create a new supplier. Source: ERPNext documentation (docs.frappe.io).Figure 34. The form of one client, Details tab. Among other things you see the customer group, the price list and the payment term (Net 30: pay within thirty days). Source: ERPNext documentation (docs.frappe.io).
Some DocTypes have other views as well. You can look at project tasks as a Gantt chart, a schedule with bars. A chart of accounts or an overview of company units is shown as a tree (Tree View), with groups and the separate parts below them. You will come across both shortly. There is also a calendar for documents with a date and a kanban board for documents with a status.
Large forms are divided into tabs. For an item these are, for example, Details, Accounting, Inventory, Purchasing, Sales and Quality. Each tab holds the fields that belong to one department. That way the buyer sees his fields together and the bookkeeper hers, but it is still the same item. You see that in figure 35.
Figure 35. The form of an item with its tabs. The Details tab has the basic data. The Maintain Stock tick means ERPNext keeps track of the stock of this item; for a service, such as advice or installation, you turn it off. Source: ERPNext documentation (docs.frappe.io).
19. Master data and transactions
The DocTypes in an ERP system fall into two groups. The first group is master data (in Dutch stamgegevens). These are the fixed things the company works with and that exist for a long time: clients, suppliers, items, employees, projects and the bookkeeping accounts. The second group is transactions: events with a date. A quotation, a sales order, an invoice, a timesheet, a payment. Figure 36 shows them side by side.
Figure 36. Master data and transactions. A transaction refers to master data: a sales invoice points to a client and a project, a timesheet to an employee and a project. The data itself is not typed again.
The difference matters, for two reasons. First, your master data has to be in order before you can make transactions. You cannot make an invoice for a client who does not exist yet. That is why, when setting up an ERP system, you always start with the master data. Second, errors in master data are expensive: a wrong VAT number for a client comes back on every invoice. That is why companies often agree that only a few people may create or change master data.
Master data often has its own tabs for different departments too. Figure 37 shows the tab with the address and contact of a supplier; in figure 35 you already saw the tabs of an item.
Figure 37. The Supplier master data with address and contact. This is made-up demo data as well. Every purchase order for this supplier fetches the address from here. Source: ERPNext documentation (docs.frappe.io).
20. Links and tables
How does an invoice know which client it belongs to? Through a link. In the Frappe Framework such a field is called a Link field. It does not contain the client's address or name itself, but a reference to the client document. On screen you see the client's name; click it and you go to the client record. That is how all documents in the system hang together. Figure 38 shows this for a sales invoice.
Figure 38. A sales invoice with four links. Customer, company and project are Link fields. The rows are in a table, and each row points to an item in turn. The whole of DocTypes and their links is called the data model.
The whole of all DocTypes and the links between them is called the data model. You do not need to know it by heart, but you must be able to read it. On every document you see the Connections tab. It shows which other documents refer to this document. For a supplier, for example, you see how many requests for quotation, purchase orders, receipts, purchase invoices and payments there are, as in figure 39.
Figure 39. The Connections tab of a supplier. You see at a glance which documents are linked to this supplier; here there is one Purchase Order. With the plus sign you immediately make a new document for this supplier. Source: ERPNext documentation (docs.frappe.io).
Many documents also have a table with rows. A quotation has rows with items, a timesheet has rows with hours, a chart of accounts does not. In the Frappe Framework such a table is itself a small DocType, a child table: the rows belong to the main document and do not exist separately. You edit a row by clicking the pencil at the end. The row then opens as a small form, as in figure 40.
Figure 40. One row of the table on a quotation, opened. Each row has its own fields: item, quantity, unit and further down the price. With the buttons at the top you add, copy or move rows. Source: ERPNext documentation (docs.frappe.io).
21. Draft, submitted and cancelled
Important documents in ERPNext have a life cycle with three states. This is called the document status, technically docstatus. A new document is first a draft. You may still change it completely and it has no effects yet. When it is right, you submit it. From that moment on it is fixed. Only then does the system make the entries in the bookkeeping or the stock. You can cancel a submitted document. The entries are then reversed, but the document remains and stays visible. You see the three states in figure 41.
Figure 41. The three states of a document. You can no longer change a submitted document. If it contains an error, you cancel it and make a new version with Amend. That gets the same number with -1 after it. That way you can still see what happened.
Why so strict? Because an ERP system has to be reliable. An invoice that has already been sent to the client and is in the bookkeeping must not change unnoticed. An accountant must always be able to see what happened. That is why you can only cancel and remake submitted documents, and not quietly change them. Not all DocTypes work like this: you can simply keep changing a client or an item. Only transactions with effects, such as invoices, orders, deliveries, payments and timesheets, are submittable.
On screen you see the status next to the title. A draft has a red Draft label and a blue bar "Submit this document to confirm", as on the left in figure 42. After submitting, the label changes. On a purchase order it then says, for example, "To Receive and Bill": still to be received and invoiced. You see that on the right in figure 43.
Figure 42. A sales order as a draft: red Draft label and the Submit button at the top right. You can still change everything. Source: ERPNext documentation (docs.frappe.io).Figure 43. A submitted purchase order. The To Receive and Bill label tells you what still has to happen: receive the goods and process the invoice. The Submit button has been replaced by Create. Source: ERPNext documentation (docs.frappe.io).
22. Roles and permissions
Not everyone in a company may see or do everything. A fitter does not need to see colleagues' salaries. A salesperson may make a quotation, but perhaps not book payments. In ERPNext you arrange that with roles. A role is a package of permissions that belongs to a task, such as Sales User, Projects User or Accounts User. You give a user one or more roles. For each role and each DocType it is recorded what that role may do: read, create, write, submit, cancel, delete, print, email and export. Figure 44 shows how this fits together.
Figure 44. Users, roles and permissions. You never give permissions to a person directly, but always through a role. When a new salesperson joins, you give him the Sales User role and he immediately has the right permissions.
You set the permissions per role with the Role Permissions Manager. Figure 45 shows an example for the Leave Application DocType. The Employee role may read, create and change a leave application, but not submit it. The HR User role may also submit, cancel and delete. That way an employee can request leave himself, and HR approves it.
Figure 45. The Role Permissions Manager. For each DocType and each role you tick what is allowed: Read, Write, Create, Submit, Cancel and more. Here for leave applications: the employee applies, HR submits. Source: ERPNext documentation (docs.frappe.io).
On the user record itself you tick which roles he has. Figure 46 shows a user who has almost all roles. That is handy in a demo, but in a real company you do not do that. You give someone exactly the roles he needs for his work, no more. That is called the principle of least privilege, and you know it from day 9.
Figure 46. The roles of one user. In this demo almost everything is on. In practice a project leader gets, for example, only Projects User and Employee, and a bookkeeper Accounts User and Accounts Manager. Source: ERPNext documentation (docs.frappe.io).
23. Reports
Entering data is only half the work. The other half is getting something out of it: overviews, totals and charts. You do that with reports. In ERPNext there are three kinds, as you see in figure 47.
Figure 47. Three kinds of reports. Reports read the data that is in the documents. They do not create or change anything themselves. That is why you can run them as often as you like.
The first kind is the report view of a list. You can turn any list into a table in which you choose columns, filter, group and add up totals yourself. That way a project leader can make his own overview of all timesheets of his project in the last month, without help from IT. The second kind are the fixed reports ERPNext comes with: the general ledger, the balance sheet, the profit and loss account, the open debtors, the stock per warehouse, the profitability per project and dozens more. The third kind are dashboards: charts and counters on a workspace, as at the top of figure 29.
A fixed report has filters at the top, such as a company, a period or an account. Figure 48 shows the General Ledger report with the filters at the top. You will learn more about the general ledger itself in part 5.
Figure 48. The fixed General Ledger report. Framed in red is the filter on company; next to it the period and an account. Each row is an entry, followed by the document it comes from, such as a Sales Invoice. Source: ERPNext documentation (docs.frappe.io).
24. Print formats
Many documents have to go out: a quotation to the client, a purchase order to the supplier, an invoice to the client. What such a document looks like on paper or as a PDF is determined by the print format. A print format is a template with places where the data of the document is filled in. The logo and the company details at the top are called the letter head. You see the principle in figure 49.
Figure 49. From document to paper. The print format is a template with places for the data, between double curly brackets. You can print the same document with different print formats, for example a quotation with or without prices per row.
ERPNext comes with standard print formats. With the Print Format Builder you can make your own print format by dragging fields, without programming. If you want more, you can write a print format in HTML with the Jinja template language. Figure 50 shows a print preview of a sales order, and figure 51 the Print Format Builder.
Figure 50. The print preview of a sales order (an older version of ERPNext). At the top you choose the print format, the language and the letter head. With PDF you turn it into a file. Source: ERPNext documentation (docs.frappe.io).Figure 51. The Print Format Builder. On the left are the fields of the DocType, on the right the page. You drag fields to where they need to go. This example is a salary slip. Source: ERPNext documentation (docs.frappe.io).
In depth
Naming series
Every document gets a unique number. That number is made according to a naming series. A sales invoice gets, for example, ACC-SINV-2026-00011: ACC for Accounts, SINV for Sales Invoice, then the year, then a sequence number. A quotation gets SAL-QTN-2026-00001, a sales order SAL-ORD-2026-00006 and a payment ACC-PAY-2026-00006. You see these numbers in many screenshots in this lesson.
A company can make its own series, for example F2026-0001 for invoices. That matters, because under the tax rules invoice numbers must be consecutive, without gaps. Many companies also want the numbering in the new ERP to follow on from that of their old system. That is a typical question when setting up on day 18.
Expert
Permissions per document: user permissions
Roles determine what someone may do with a DocType. Sometimes you want someone to see only certain documents. A project leader may, for example, only see the timesheets and tasks of his own projects, and an employee only his own leave applications. For that there are user permissions. You record that a user may only see documents linked to a certain value, for example to one employee or one project.
Figure 52. A user permission in an older version of ERPNext: user bruce@example.com may only see documents linked to employee HR-EMP-00004, and that applies to all DocTypes. Source: ERPNext documentation (docs.frappe.io).
Look at figure 52. For Bouwbedrijf Rijnmond, think of which three user permissions you would set for a site manager who works on two projects at the same time. Write down which DocTypes he then can and cannot see, and what happens when he moves to a third project.
Check: part 4
See whether you have grasped the core of this part. The check does not count towards your exam; you can take it as often as you like.
Part 5 The processes: sales, purchasing, projects and the general ledger
About 80 minutes
25. The sales chain at a glance
Now that you know the basic concepts, you look at how the documents together form a process. The most important process in every company is the sales chain: from a client's first interest to the money in the bank. This is often called order to cash or lead to cash. In ERPNext the chain consists of seven documents. You see them in figure 53.
Figure 53. The sales chain in ERPNext, with the Dutch and the English names. You make each document from the previous one. For services and instalments you skip the delivery and invoice directly from the sales order.
In short: a lead is someone who is interested. When there is a concrete question, that becomes an opportunity. For the opportunity you make a quotation. If the client says yes, the quotation becomes a sales order; at that moment the lead also becomes a permanent customer. If goods go to the client, you book a delivery. Then you send a sales invoice, and when the client pays, you book a payment. Frappe draws the same chain in the documentation, as you see in figure 54.
Figure 54. The same process as Frappe draws it. The top row belongs to the CRM module, the bottom row to Selling. The dotted line at the bottom shows that you can also make a sales invoice directly from a sales order. Source: ERPNext documentation (docs.frappe.io).
You do not have to use every step. A small engineering firm without salespeople often simply starts at the quotation. A company that only provides services, such as advice or drawing work, skips the delivery. But the order always stays the same, and each document points back to the previous one. That means you can always go back from a payment to the invoice, the order and the quotation.
26. Lead and opportunity
A lead is a person or organisation that might become a client. For example someone who fills in a form on the website, a business card from a trade fair, or an architect who calls about a new project. In the lead you record who it is, how you got in touch (the source) and who in your company follows it up. An opportunity is a step further: there is a concrete question, with a subject and sometimes already an expected amount. You make an opportunity with the Create button from the lead, as on the right in figure 56.
Figure 55. A lead (older version of ERPNext, made-up data). You see the contact, the organisation, the status and the source: here a mailing. Source: ERPNext documentation (docs.frappe.io).Figure 56. From the lead you make an Opportunity with Create. The lead then gets the status Opportunity, so you can see in the list how far everyone has got. Source: ERPNext documentation (docs.frappe.io).
For a construction company, a lead is for example a housing association that sends an invitation to a tender. The opportunity is then the concrete project: "renovation of 48 homes Lindelaan". By keeping all leads and opportunities in the system, the managing director sees how much work might be coming, and how much of it is usually won.
27. The quotation
The quotation is the offer to the client: what you deliver, at what price and under what conditions. In ERPNext a quotation has the client, the date and the validity at the top. Below that is the table with rows: items or services, quantities and prices. At the bottom are the VAT, the total and the terms. You see a quotation in figure 57.
Figure 57. A quotation as a draft. Valid Till is the date until which the quotation is valid. The table has three rows; the last one is a service (Device Setup). At the top right is the Submit button: only after submitting can you turn it into a sales order. Source: ERPNext documentation (docs.frappe.io).
At a construction company, the content of a quotation often comes from the cost estimate, which you saw on day 7 and day 13. The cost estimate itself is usually made in an estimating program; the ERP gets the result: one or more rows with the contract sum, and possibly the provisional sums. How you link those two is a typical question for a consultant. Today you only need to recognise it.
28. Sales order and delivery
If the client says yes, you make a sales order from the quotation. That is the confirmed order. At a construction company, that is the moment the contract has been signed. The sales order is the anchor point of the rest of the chain: from the order you make the deliveries, the invoices, possibly purchase orders for material that has to be ordered specially for this client, and a project. You see all those options in the Create menu in figure 58.
Figure 58. A submitted sales order with the label To Deliver and Bill (still to be delivered and invoiced). The Create menu shows what can follow an order: a Delivery Note, a Sales Invoice, a Purchase Order, a project and more. Source: ERPNext documentation (docs.frappe.io).
You use a delivery (Delivery Note) when goods go from your warehouse to the client. A builders' merchant uses this every day. A contractor uses it less: his "delivery" is a building, and you invoice that in instalments. An engineering firm almost never uses it. That is why you can skip the delivery in ERPNext, as the bottom dotted line in figure 53 shows.
29. Sales invoice and payment
The sales invoice is the bill to the client. It takes over the client, the rows and the prices from the sales order. At the bottom ERPNext calculates the VAT and the total. Only when you submit the invoice is it booked in the bookkeeping: the client now owes you money. Figure 59 shows the bottom part of an invoice with the tax and the grand total.
Figure 59. The bottom part of a sales invoice. The Sales Taxes and Charges table contains the tax; in the Netherlands that is the btw (VAT), usually 21 per cent. Below it the Grand Total. This example comes from a demo with American tax. Source: ERPNext documentation (docs.frappe.io).
When the client pays, you book a payment (Payment Entry). You make it from the invoice with Create and then Payment, as on the left in figure 60. The payment shows the client, the amount, the date and the bank account the money came in on. The payment is linked to the invoice, so ERPNext knows it has been paid. In practice payments often come in automatically via a link with the bank; then you only have to match them to the right invoice.
Figure 60. An invoice with the Overdue label: the payment term has passed. Via Create and then Payment you make the payment. Under Dunning you find the reminder letter. Source: ERPNext documentation (docs.frappe.io).Figure 61. The payment itself (Payment Entry), submitted. Payment Type Receive means money received; for a payment to a supplier it says Pay. Source: ERPNext documentation (docs.frappe.io).
In the list of sales invoices you see at a glance how things stand. Each invoice has a status: Draft, Unpaid, Overdue, Partly Paid or Paid. You see that in figure 62. For a construction company this is one of the most important lists: money that comes in late means the company finds it harder to pay its own suppliers and people.
Figure 62. The list of sales invoices. The colours of the status stand out straight away: red for Overdue, orange for Unpaid, green for Paid. With a filter on status you make a list of everything that is late in two clicks. Source: ERPNext documentation (docs.frappe.io).
30. The purchasing chain
What you sell, you often have to buy first. The purchasing chain (procure to pay) is the mirror image of the sales chain. You see it in figure 63.
Figure 63. The purchasing chain in ERPNext. It starts with the question of what is needed and ends with paying the supplier. At the top are two optional steps to ask suppliers for prices first.
It starts with a material request: someone in the company reports that something is needed. For example the site manager who needs two hundred bags of mortar next week. If the buyer wants to compare prices first, he sends a request for quotation to a few suppliers and records their answers as a supplier quotation. Then he places a purchase order: the order with the chosen supplier. Figure 64 shows a material request.
Figure 64. A material request. Framed in red: the purpose (Purchase), when it is needed (Required By) and which warehouse it must go to. The Ordered status shows that a purchase order has already been made from it. Source: ERPNext documentation (docs.frappe.io).
When the goods arrive, the warehouse books a receipt (Purchase Receipt). With that, the stock goes up. Then the supplier's bill arrives: you record it as a purchase invoice, with the supplier's invoice number and due date. Finally you pay, with a payment (Payment Entry) of the type Pay. Figure 65 shows that from a purchase order you make the next steps directly with Create.
Figure 65. From a purchase order you make the Purchase Receipt, the Purchase Invoice or the Payment. Everything is taken over: the supplier, the items, the quantities and the prices. Source: ERPNext documentation (docs.frappe.io).
A good ERP system checks that everything matches. Does an invoice arrive for three hundred bags of mortar, while two hundred were ordered and received? Then that stands out. On day 13 you learnt this as the three-way match: order, receipt and invoice must match each other before you pay. Figure 66 shows a purchase invoice with the supplier's invoice number and invoice date.
Figure 66. A purchase invoice. Framed in red: the supplier, the Due Date, and the number and date of the invoice as the supplier sent it. That way you can find the paper or PDF invoice again later. Source: ERPNext documentation (docs.frappe.io).
31. Projects and tasks
For construction companies and engineering firms, the Projects module is the heart of the system. A project in ERPNext is master data to which everything belonging to one commission is linked: the sales order, the invoices, the purchasing, the hours and the tasks. That lets you see per project what it earns and what it costs. You see that in figure 67.
Figure 67. The project as the centre. All costs and income linked to the project count towards the margin. At the bottom are the tasks into which the work is divided.
In the project form you record which client the project is for, which sales order it belongs to, when it starts and ends and how progress is calculated. Figure 68 shows a project linked to a client and a sales order. You can add project members as users. With a setting you can also have the system automatically ask for a progress report every week.
Figure 68. A project with the links to the Customer and the Sales Order. Under Users are the people who may see the project. The notes say what the project is about. Source: ERPNext documentation (docs.frappe.io).
You divide the work in a project into tasks. Each task has a subject, a status, an expected start and end date, the expected number of hours and a progress percentage. Tasks can depend on each other: the shell can only start once the foundations are finished. You see a task on the left in figure 69. On the right, figure 70 shows the tasks of a project as a Gantt chart, the bar schedule you learnt to read on day 7.
Figure 69. A task with under Timeline the planned start and end date, the Expected Time and the % Progress. Source: ERPNext documentation (docs.frappe.io).Figure 70. The same tasks as a Gantt chart. Each bar is a task, with the progress percentage after it. The arrow shows that one task is waiting for another. Source: ERPNext documentation (docs.frappe.io).
Note: the project planning in ERPNext is simple. For a large construction schedule with hundreds of activities, companies usually use a separate scheduling program. The ERP then only holds the main tasks, on which hours and costs are recorded. That too is a choice you make with the client during setup.
32. Timesheets and project costs
At an engineering firm, hours are the most important thing the company sells. At a construction company, the hours of its own people are a large cost item. In ERPNext employees record their hours on a timesheet. Each row shows the type of activity, the project, possibly the task, the number of hours and whether the hours may be invoiced to the client. What happens to those hours next is shown in figure 71.
Figure 71. From timesheet to money. The same eight hours count twice: as costs for the project, at the cost rate, and as an amount you can invoice to the client, at the billing rate. The rates are examples.
The rates come from the activity costs (Activity Cost): for each type of activity and each employee you record a cost rate and a billing rate per hour. The cost rate is what an hour of that employee costs the company; on day 13 you learnt to calculate that as the hourly cost rate. The billing rate is what the client pays per hour. Figure 72 shows a timesheet with one row.
Figure 72. A timesheet as a draft. The Time Sheets table has one row: four hours of Planning on the Raincoat Manufacturing project. After submitting, these hours count towards the costs of the project. Source: ERPNext documentation (docs.frappe.io).
ERPNext adds up all costs and income linked to a project in the project's Costing and Billing block. You see that in figure 73: the estimated costs, the costs of hours, expense claims and purchasing, the income from sales orders and invoices. From that the system calculates the margin. For a managing director, this is the answer to the question from figure 4: what are we earning on this project?
Figure 73. The Costing and Billing block of a project (amounts in Indian rupees). On the left the costs, each with its source: via timesheets, via expense claims, via purchase invoices, via stock. On the right the income: via sales orders and via sales invoices. Under Margin is the profit. Source: ERPNext documentation (docs.frappe.io).
33. The general ledger
Everything that costs or earns money ends up in the general ledger in the end. On day 13 you learnt what that is: the company's central accounts, with an account for every kind of asset, liability, income and cost. In an ERP system you almost never type anything into the general ledger yourself. The entries arise by themselves from the documents you submit. But not every document makes an entry. Figure 74 shows which ones do.
Figure 74. Which documents in the sales chain make entries in the general ledger. A quotation and a sales order are agreements, not money; they book nothing. The delivery, the invoice and the payment do. The purchasing chain works the same way: the receipt, the purchase invoice and the payment make entries.
Every entry follows the rules of double-entry bookkeeping. Every amount appears twice in the general ledger: once on the debit side of one account and once on the credit side of another. Debit and credit always add up to the same amount. Figure 75 shows what ERPNext books for an invoice of 12,100 euros including VAT, and for its payment.
Figure 75. Double-entry bookkeeping with T-accounts. With the invoice, debtors go up (the client owes us money), revenue goes up and the VAT payable goes up. With the payment, the bank goes up and debtors go back down. Debit and credit are always the same size.
The accounts are in the chart of accounts. That is a tree with five main groups: assets, liabilities, equity, income and expenses. The first three together form the balance sheet: what the company has and what it owes. The last two form the profit and loss account: what the company has earned and spent this year. You see an example in figure 76.
Figure 76. A simplified chart of accounts for a construction company. A real one has dozens to hundreds of accounts. In the Netherlands many companies use a standard classification, and accountants want the new ERP to follow it.
In ERPNext you see the chart of accounts as a tree, and the general ledger as a report. On the left, figure 77 shows the chart of accounts of a demo company, with the five main groups and their balances. On the right, figure 78 shows the entries in the General Ledger report. Each row has a date, an account, an amount debit or credit, and the document the entry comes from.
Figure 77. The chart of accounts as a tree. The five groups are called Assets, Liabilities, Equity, Income and Expenses. Source: ERPNext documentation (docs.frappe.io).Figure 78. The entries in the general ledger. One sales invoice has several rows: Debtors, Sales, Stock In Hand and Cost of Goods Sold. At the bottom, debit and credit add up to the same amount. Source: ERPNext documentation (docs.frappe.io).
34. How ERPNext fits construction
You have now seen all the building blocks. How do they fit a construction company or engineering firm? In figure 79 you see on the left what happens in such a company, and on the right where you keep track of it in ERPNext. It is not a ready-made recipe; every company sets it up slightly differently. But it gives you a map for the conversation with a client.
Figure 79. The work of a construction company translated into ERPNext. Almost everything is linked to the project. That lets you follow the costs, the income and the margin per project, and that is exactly what a construction company wants to know.
Three things stand out. First, the project administration: every building is a project, and all hours, purchases, subcontractors and invoices are linked to that project. Second, the hours: the people on the building site and in the office record their hours on the project and the task, so the cost review comes about by itself. Third, the instalments: a contractor does not invoice the contract sum in one go, but in parts, when a milestone has been reached. You see an example in figure 80.
Figure 80. A payment schedule. Each instalment becomes a separate sales invoice, linked to the sales order and the project, as soon as the milestone has been reached. That way the system always shows what has already been invoiced and what is still to come.
Extra work is a fourth point that keeps coming back in construction. The client wants something extra, such as different window frames. That becomes a separate quotation and, after approval, an extra sales order or an extra row on the project. If extra work is not in the system, it is often forgotten when invoicing. That is one of the places where a well set-up ERP earns money straight away.
Tip A construction company does not talk in DocTypes, but in projects, instalments, extra work and cost reviews. Learn the client's words and translate them into ERPNext yourself. Then the client feels understood, and does not have to learn a new language.
35. Looking ahead: on day 18 you set it up yourself
Today you got acquainted. You know what an ERP system is and why companies use it. You know the difference between closed and open source, and between cloud, partner and own server. You know what Frappe and the Frappe Framework are, and that ERPNext is open source under GPL-3.0. You know the modules, the basic concepts and the most important processes. You have not set anything up yet, and that is the intention. Figure 81 shows how things continue.
Figure 81. The route of the training around ERPNext. Tomorrow you will see how ERPNext works together with the OpenAEC apps. On day 17 you get to know a client, and on day 18 you set up ERPNext for a company.
On day 18 you set up a company in ERPNext: the company itself, the chart of accounts, the VAT, the naming series, the users and roles, and the first master data. You also transfer data from an old administration. Everything you learnt today comes back then. The better you know today's concepts, the easier that will be. So take the assignment below seriously: if you have clicked through ERPNext yourself today, you will be much stronger on day 18.
In depth
Cost centres and budgets
Besides projects, ERPNext has cost centres (Cost Centers). A cost centre is a part of the company whose costs and income you want to see separately, such as a branch, a department or a business unit (for example housing versus maintenance). Every entry in the general ledger gets a cost centre. That way you can make a profit and loss account per branch.
Figure 82. A budget in ERPNext: for one cost centre and one expense account an amount per year, here divided over twelve months. You can also make a budget per project. Source: ERPNext documentation (docs.frappe.io).
You can put a budget on a cost centre or a project, as in figure 82. You then set what happens if someone wants to spend more than the budget: nothing, a warning, or the system blocks the purchase order. For a construction company that is interesting: the budget per project comes from the cost estimate, and the system warns the project leader when purchasing goes over it.
Expert
Follow one invoice through the whole system
In a trial environment or in the documentation, choose one submitted sales invoice. Open the general ledger and filter on the number of that invoice. Write down which rows there are, with account, debit and credit, and check that debit and credit add up to the same amount. Then use the invoice's Connections tab to go back to the sales order and the quotation, and forward to the payment. Draw the result: one invoice in the middle, with all documents and entries around it.
Figure 83. The source document behind a row in the general ledger: a sales invoice with three rows. From the general ledger you click on the document number and you end up here. That way you can trace every entry back to its origin. Source: ERPNext documentation (docs.frappe.io).
Finally, think about this: what do you have to do if the client says one row on the invoice is wrong, while the invoice has already been submitted and partly paid? Describe the steps with the concepts from this lesson: cancel, amend, credit note and payment.
Check: part 5
See whether you have grasped the core of this part. The check does not count towards your exam; you can take it as often as you like.
Assignment Getting to know ERPNext
About 2 hours
Do it yourself
Today you explore ERPNext yourself. You do not set anything up for a real company yet; you look around, look things up and draw. Work in a document of your own, for example in Open Office Studio or a word processor. Take a screenshot at each step and put it in your document. Your supervisor wants to see it.
Choose your environment. Go to frappe.io/erpnext and use the Start free trial button to start a free trial environment. You create the account yourself, with your own email address. When setting it up, choose a made-up company and do not enter any real client data. If a trial environment does not work, or you would rather not, use the public documentation at docs.frappe.io/erpnext. Write down which choice you made.
Take a tour of the screen. In your trial environment, open three workspaces, for example Selling, Projects and Accounting. On a document, find the nine parts from figure 30. If you work with the documentation, use the screenshots in the Selling and Projects chapters.
Walk through the sales chain. In the trial environment, make a made-up client, an item (a service, without stock), a quotation, a sales order and a sales invoice, each time with the Create button from the previous document. Submit each document. If you work with the documentation, read the pages on Quotation, Sales Order and Sales Invoice. For each step, write down: the Dutch and English name, what the document does, which button you used and which status the document got.
Look up five DocTypes and describe them. Choose Customer, Item, Sales Invoice, Timesheet and Project. Look them up via the search bar (type "DocType") or in the documentation. For each DocType, write down: is it master data or a transaction, is it submittable, name five fields, which fields are mandatory, and which other DocTypes does it point to with a link?
Look at ERPNext on GitHub. Go to github.com/frappe/erpnext. Write down: the licence, the newest release with version number and date, the number of open issues, and when the last change to the code was made. Open one issue you understand and summarise it in two sentences: what is the problem and what is the response?
Draw the path from quotation to payment. On paper or in a drawing program, draw a diagram from a quotation to the payment, for a construction project with three instalments. Use the ERPNext names in Dutch and English. For each document note whether it makes an entry in the general ledger, and if so, what is booked. Also draw where the project comes into the picture.
Explain it to a managing director. In five to eight sentences, write for the managing director of Bouwbedrijf Rijnmond why one ERP system is better than his spreadsheet, his time app and his bookkeeping package separately. Do not use jargon without explaining it and give at least one example from his own company.
Expert
Extra assignment: the purchasing chain and a project
In your trial environment, make a project "De Linde, 12 houses" for your made-up client. Make a supplier and an item with stock, for example "bag of mortar 25 kg". Go through the purchasing chain: material request, purchase order, receipt and purchase invoice, and link them to the project. Then record two timesheets on the project, with an activity and a cost rate. Open the project and look at the Costing and Billing block. Does it match what you expected? Explain in a few sentences which amounts you see and where they come from.
Terms Glossary
ERP system
Enterprise Resource Planning: software in which a company keeps track of all its business operations, in one shared database.
Database
An ordered collection of data that a program can search and update quickly. In an ERP all departments share one database.
Process
A fixed series of steps that keeps coming back, such as from quotation to payment.
MRP
Material Requirements Planning: the forerunner of ERP, for planning material in factories.
Open source
Software whose source code is public and which anyone may use, change and distribute according to the licence.
Licence
The rules for using software. With closed software usually a fee per user; with open source a free licence.
GPL-3.0
The open source licence of ERPNext. You may use and change the software freely; anyone who distributes a changed version must make it open too.
Lock-in
Being stuck with a supplier, because switching is too difficult or too expensive.
SaaS
Software as a Service: software you rent and use via the browser, while the maker manages the server.
On-premise
Software on a company's own server in its own office.
Frappe
The software company from India that makes ERPNext and the Frappe Framework.
Frappe Framework
The construction kit in Python and JavaScript on which ERPNext and other apps run, with DocTypes, permissions, reports and a REST API.
ERPNext
Open source ERP system from Frappe, under GPL-3.0, with the source code on GitHub.
Module
Part of ERPNext for one topic, such as Accounting, Selling, Buying, Stock or Projects.
Workspace
Home page for one topic, with shortcuts, lists, reports and charts.
DocType
The template for a kind of document: which fields there are, what may go in them and who may see it.
Document
One filled-in copy of a DocType, such as one client or one invoice.
Field
One item of data in a document, with a type, such as text, number, currency, date or link.
Link
A field that refers to another document, such as the client on an invoice.
Child table
A table with rows that belongs to a document, such as the items on a quotation.
Data model
The whole of DocTypes and the links between them.
List view
All documents of one DocType one below the other, with filters and sorting.
Form
One document with all its fields, spread over tabs.
Master data
Fixed data that exists for a long time: clients, suppliers, items, employees, projects, accounts.
Transaction
An event with a date, such as a quotation, invoice, timesheet or payment.
Draft
A document that may still be changed and has no effects yet.
Submit
Fixing a document. Only then are entries made in the bookkeeping or stock.
Cancel and amend
Undoing a submitted document, and then making a new version of it with -1 after the number.
Role
A package of permissions that belongs to a task, such as Sales User or Accounts User.
User Permission
A restriction so that a user only sees documents that belong to a certain value, such as his own project.
Report
An overview that reads data from documents, such as the general ledger or the profit per project.
Print format
A template that determines what a document looks like on paper or as a PDF. The letter head is the logo with the company details.
Naming series
The rule by which document numbers are made, such as ACC-SINV-2026-00011.
Lead
A person or organisation that might become a client.
Opportunity
A concrete question from a possible client.
Quotation
An offer to the client with price and conditions.
Sales Order
The client's confirmed order.
Delivery Note
A document for goods going to the client; the stock goes down.
Sales Invoice
The bill to the client.
Payment Entry
Money coming in (Receive) or going out (Pay).
Material Request
A report that something is needed, the start of the purchasing chain.
Purchase Order
An order with a supplier.
Purchase Receipt
A document for goods coming in; the stock goes up.
Purchase Invoice
A supplier's bill.
Project
Master data to which all documents of one commission are linked, with tasks, hours, costs and income.
Task
A part of the work in a project, with a schedule and progress.
Timesheet
A document on which an employee records his hours per activity, project and task.
Activity Cost
The cost rate and the billing rate per hour, per type of activity and per employee.
General Ledger
The central bookkeeping with all entries on all accounts.
Chart of Accounts
The tree with all accounts, in five groups: assets, liabilities, equity, income and expenses.
Debit and credit
The two sides of an entry in double-entry bookkeeping. They always add up to the same amount.
Cost Center
A part of the company whose costs and income you follow separately.
Instalment
Part of the contract sum that is invoiced when a milestone has been reached.
bench
The tool with which you install and update Frappe apps and make backups.
Exam What an ERP system is, and ERPNext
Take the exam at the end of the day, once you have done all parts and the checks. The exam is on a page of its own, without the lesson. You need 75% of the multiple-choice questions right; an assessor marks the open questions.