.
148 |
149 | Now remove `sudoer` rights form the `erpnext` user.
150 |
151 | sudo usermod -G "" erpnext
152 |
153 | Lastly we need to check on a few things to ensure they are running and installed correctly.
154 |
155 | # Confirm redis-server is running
156 | sudo netstat -tulpn | grep redis-server
157 | sudo redis-server -v # Should be >= 3.2.x
158 |
159 | # Confirm NodeJS and npm
160 | sudo node -v # Should be >= 8.9.x for all except Debian 7
161 | sudo npm -v # Should be >= 5.6.x
162 |
163 | # Confirm mysql/mariadb is running on port 3306
164 | sudo netstat -tulpn | grep mysql
165 |
166 | # Confirm ngingx is listening on port 80
167 | sudo netstat -tulpn | grep nginx
168 |
169 | # Confirm postfix smtp relay is running on port 25
170 | sudo netstat -tulpn | grep master
171 |
172 | # Confirm socket.io is running on port 8000 as a python process
173 | sudo netstat -tulpn | grep 8000
174 |
175 | # Confirm NodeJS is running on port 9000
176 | sudo netstat -tulpn | grep node
177 |
178 | If any of the above items are not running, then you will need to troubleshoot the installation of that component. At this point the `erpnext` user should be an non-sudoer user and you will have an empty production environment running. Next step is to run the [Setup Wizard](../setup/setup "Setup").
179 |
180 | Home: [Table of Contents](../ "Table of Contents") | Previous: Next: [3.1.5 Software Packages Installed](software "Software Packages Installed") | Next: [3.2.1 Installation Troubleshooting](install-trouble "Installation Troubleshooting")
181 |
--------------------------------------------------------------------------------
/i-u-b/nginx.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.1.3 Wonderful World of git](git "The Wonderful World of git") | Next: [3.1.5 Software Packages Installed](software "Software Packages Installed")
2 |
3 | ### 3.1.4 The Wonderful World of nginx
4 |
5 | `nginx` is a web server, similar to the popular Apache `httpd` web server. This piece of software is critical to the proper functioning of an ERPNext installation. Ensuring that the configuration of the web server is correct ensures that your installation will work properly and also stays secure, especially if your installation is exposed to the open Internet.
6 |
7 | The best place to learn about nginx is on the [nginx.org](http://nginx.org/en/docs/ "nginx Documentation") website. At a minimum, an administrator should read the Beginner's Guide and the Admin's Guide.
8 |
9 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.1.3 Wonderful World of git](git "The Wonderful World of git") | Next: [3.1.5 Software Packages Installed](software "Software Packages Installed")
10 |
--------------------------------------------------------------------------------
/i-u-b/restore.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.4 Backing Up ERPNext](backup "Backing Up ERPNext") | Next: [4 Setup](../setup/setup "Setup")
2 |
3 | ## 3.5 Restoring from a Previous Backup
4 |
5 | Assuming you have a good [simple backup](backup#Simple "Backing Up ERPNext"), you can use these commands to restore the database and files. These commands also assume that you are not [reverting](revert "Reverting to an Older Version") back to a different code base.
6 |
7 | **NOTE**: For some reason the admin guide does not understand, `bench` does not handle relative paths very well. Be sure to fully qualify all of the path's you use for the `bench restore` command.
8 |
9 | sudo su - erpnext
10 | cd [bench name]
11 | bench --force restore \
12 | --with-public-files /home/erpnext/[bench name]/sites/[site name]/private/backups/[files.tar] \
13 | --with-private-files /home/erpnext/[bench name]/sites/[site name]/private/backups/[private-files.tar] \
14 | /home/erpnext/[bench name]/sites/[site name]/private/backups/[sql.gz file]
15 |
16 | This should bring your system's database and files configuration back to the point in time the backup was taken.
17 |
18 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.4 Backing Up ERPNext](backup "Backing Up ERPNext") | Next: [4 Setup](../setup/setup "Setup")
19 |
--------------------------------------------------------------------------------
/i-u-b/revert.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous [3.2 Upgrading ERPNext](upgrade "Upgrading ERPNext") | Next: [3.3.4 Upgrade Troubleshooting](upgrade-trouble "Upgrade Troubleshooting")
2 |
3 | ### 3.3.3 Reverting to an Older Version
4 |
5 | ERPNext is not really designed to be reverted or back-ported. However, with some planning it can be done. The main trick is to have good backups. Refer to [3.4 Backing up ERPNext](backup "Backing up ERPNext"). This is the primary reason why we backup all sites before we do an [upgrade](upgrade "Upgrading ERPNext"). With planning and a good backup, you can restore the database to match the known good code base.
6 |
7 | Assuming the steps to take a **full backup** were completed from [3.4 Backing up ERPNext](backup#Full "Backing up ERPNext"), follow these steps to revert to the backed up state.
8 |
9 | **NOTE**: For some reason the admin guide does not understand, `bench` does not handle relative paths very well. Be sure to fully qualify all of the path's you use for the `bench restore` command.
10 |
11 | sudo su - erpnext
12 | # you should be in the root of the erpnext user home directory
13 | rm -Rf [bench name]
14 | tar -xvf erp-prd-backup-[yyyy-mm-dd].tar.bz2
15 | cd [bench name]
16 |
17 | # find the latest backup files in sites/[site name]/private/backups/
18 | # you will be prompted for the mysql pwd
19 | bench --force restore \
20 | /home/erpnext/[bench name]/sites/[site name]/private/backups/[sql.gz file]
21 | bench migrate
22 | bench clear-cache
23 | bench clear-website-cache
24 | bench restart
25 |
26 | Following these commands will essentially wipe the old version completely and restore what was taken in the full backup to production.
27 |
28 | Home: [Table of Contents](../ "Table of Contents") | Previous [3.2 Upgrading ERPNext](upgrade "Upgrading ERPNext") | Next: [3.3.4 Upgrade Troubleshooting](upgrade-trouble "Upgrade Troubleshooting")
29 |
--------------------------------------------------------------------------------
/i-u-b/software.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.1.4 Wonderful World of nginx](nginx "The Wonderful World of nginx") | Next: [3.2 Installing ERPNext](install "Installing ERPNext")
2 |
3 | ### 3.1.5 Software Packages Installed
4 |
5 | During [Installation](install "Installing ERPNext") the `install.py` Python script will install a collection of software dependencies.
6 |
7 | Here is the alphabetical order listing for all installations (common):
8 |
9 | * ansible
10 | * curl
11 | * erpnext
12 | * frappe bench
13 | * frappe framework
14 | * git
15 | * mariadb
16 | * nginx
17 | * nodejs
18 | * npm
19 | * pip
20 | * redis
21 | * sudo
22 | * wget
23 | * which
24 | * wkhtmltopdf
25 |
26 | Here is a alphabetical order listing for Debian based Linux distributions:
27 |
28 | * build-essential
29 | * dnsmasq
30 | * fontconfig
31 | * htop
32 | * libcrypto++-dev
33 | * libffi-dev
34 | * libfreetype6-dev
35 | * libjpeg62-turbo-dev
36 | * libjpeg8-dev
37 | * liblcms2-dev
38 | * libmariadbclient-dev
39 | * libssl-dev
40 | * libtiff4-dev
41 | * libtiff5-dev
42 | * libwebp-dev
43 | * libxext6
44 | * libxrender1
45 | * libxslt1-dev
46 | * libxslt1.1
47 | * ntp
48 | * postfix
49 | * python-dev
50 | * python-mysqldb
51 | * python-selinux
52 | * python-setuptools
53 | * python-software-properties
54 | * python-tk
55 | * screen
56 | * software-properties-common
57 | * supervisor
58 | * tcl8.5-dev
59 | * tk8.5-dev
60 | * vim
61 | * xfonts-75dpi
62 | * xfonts-base
63 | * zlib1g-dev
64 |
65 | Here is the alphabetical order listing for Red Hat based Linux distributions:
66 |
67 | * bzip2-devel
68 | * cronie
69 | * epel-release
70 | * freetype-devel
71 | * groupinstall 'Development Tools'
72 | * lcms2-devel
73 | * libXext
74 | * libXrender
75 | * libffi-devel
76 | * libjpeg-devel
77 | * libselinux-python
78 | * libtiff-devel
79 | * libwebp-devel
80 | * libxml2
81 | * libxml2-devel
82 | * libxslt
83 | * libxslt-devel
84 | * libzip-devel
85 | * openssl-devel
86 | * postfix
87 | * python-devel
88 | * python-setuptools
89 | * redhat-lsb-core
90 | * supervisor
91 | * tcl-devel
92 | * tk-devel
93 | * xorg-x11-fonts-75dpi
94 | * xorg-x11-fonts-Type1
95 | * zlib-devel
96 |
97 | Here is the listing for MacOS:
98 | * brew
99 | * cmake
100 |
101 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.1.4 Wonderful World of nginx](nginx "The Wonderful World of nginx") | Next: [3.2 Installing ERPNext](install "Installing ERPNext")
102 |
--------------------------------------------------------------------------------
/i-u-b/upgrade-trouble.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.3.3 Reverting to an Older Version](revert "Reverting to an Older Version") | Next: [3.4 Backing Up ERPNext](backup "Backing Up ERPNext")
2 |
3 | ### 3.3.4 Upgrade Troubleshooting
4 |
5 | There are a number of things that can go wrong during an upgrade. The best thing to do is to ensure that you did indeed take a good [simple](backup#Simple) and [full](backup#Full) backup of the environment before you started. Second thing to do is capture the `python` stack trace in its entirety and open a new topic on the [discussion forum](https://discuss.erpnext.com/c/bench). The more specific you are in the forum topic the better support you will get from the community. Things that should be mentioned in the post:
6 |
7 | * Current version of ERPNext and Frappe Framework
8 | * Version of each attempting to upgrade to (don't just say current, explicitly state the version number)
9 | * Operating system environment and version
10 | * List of any custom apps installed, including your own
11 |
12 | These things will help the community to better understand your issue. You might have discovered a defect in the software and so a [github issue](https://github.com/frappe/erpnext/issues) will need to be opened. This is why the admin guide stresses the importance of upgrading in a non-production environment first. That way your users will not be impacted by a delay to figure out an issue with an upgrade. Especially if there is a defect, you will have to wait to get it fixed (or fix it yourself and post a pull request) and then wait for a release to master branch to occur to try again.
13 |
14 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.3.3 Reverting to an Older Version](revert "Reverting to an Older Version") | Next: [3.4 Backing Up ERPNext](backup "Backing Up ERPNext")
15 |
--------------------------------------------------------------------------------
/i-u-b/upgrade.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.2.2 Installing Development Side by Side](install-dev "Installation of a Side by Side Development Environment") | Next: [3.3.3 Reverting to an Older Version](revert "Reverting to an Older Version")
2 |
3 | ## 3.3 Upgrading ERPNext
4 |
5 | In this section we go over steps to upgrade ERPNext. One of the things that comes up very often on the [Discussion Forum](https://discuss.erpnext.com/ "ERPNext Discussion Forum") is upgrade issues. So besides installation issues, the admin guide would say that the second most often cries for help are from challenges related to upgrading ERPNext. What is interesting is in most cases the administrator is the one who caused their own issue because they didn't take the time to be prepared and get setup in a way to allow them plenty of flexibilty to upgrade in a safe environment.
6 |
7 | What is this "flexibility"? It's very simple: **ONLY UPGRADE IN A NON-PRODUCTION ENVIRONMENT FIRST.**
8 |
9 | Yes, the admin guide purposefully put that in all caps with bold text to make a point. Who upgrades a production environment and breaks it because he didn't take the time to test out an upgrade in a lower level non-production environment! Your company's ERPNext installation is at the heart of its operations! Don't risk messing something up because you (as the administrator) didn't take the time to test out in a safe place where you have all the time in the world to fix before you upgrade production. Please read the section on environments in [3.2 Installing ERPNext](install "Installing ERPNext") and then read [3.2.2 Installation of a Side by Side Development Environment](install-dev "Installation of a Side by Side Development Environment") to get setup.
10 |
11 |
12 | ### 3.3.1 Upgrading from one Major Version to Another
13 |
14 | The developers of ERPNext use a three-numeral version system in this format `[major version].[minor version].[patch level]`. So an upgrade of one major version to another would be like going from v7.x to v8.x or a really big jump would be going from v7.x to v9.x. There are a ton of things that can happen when doing a major upgrade! This is where doing work in a [non-production environment](install-dev "Installation of a Side by Side Development Environment") is really needed. The admin guide has NEVER seen anyone complete a major upgrade without issue. There are too many factors to consider.
15 |
16 | First start with a [good full backup](backup#Full "Backing up ERPNext") of the development system and a [simple backup](backup#Simple "Backing up ERPNext") of the production system.
17 |
18 | Assuming the stage environment is the same version as production (or very close), restore the production database to the stage environment. Before you run the commands below, ensure that the `encryption_key` value in `sites/[site name]/site_config.json` from the production site is also in the stage `site_config.json`. Otherwise you will get an error on restart.
19 |
20 | **NOTE**: For some reason the admin guide does not understand, `bench` does not handle relative paths very well. Be sure to fully qualify all of the path's you use for the `bench restore` command.
21 |
22 | cd erpnext-stg
23 | # restore the prod database snapshot taken, you will be prompted for the mysql root pwd
24 | bench --force restore \
25 | --with-public-files /home/erpnext/[prd bench name]/sites/[site name]/private/backups/[files.tar] \
26 | --with-private-files /home/erpnext/[prd bench name]/sites/[site name]/private/backups/[private_files.tar] \
27 | /home/erpnext/[prd bench name]/sites/[site name]/private/backups/[sql.gz]
28 |
29 | # confirm the database schema matches the code, clear all cache and restart
30 | bench migrate
31 | bench clear-cache
32 | bench clear-website-cache
33 | bench restart
34 |
35 | At this point, you should go into the stage environment user interface and ensure it looks and operates like the current production site. Run trough a few tests to ensure everything is working okay. Don't assume that the copy down operation completed above actually worked!
36 |
37 | Once you are comfortable that the copy down procedure worked, now it's time to upgrade stage.
38 |
39 | bench update
40 | bench clear-cache
41 | bench clear-website-cache
42 | bench restart
43 |
44 | This is often when things go wrong. Refer to [3.3.4 Upgrade Troubleshooting](upgrade-trouble "Upgrade Troubleshooting") for some insight on troubleshooting an upgrade. If everything went fine and no errors were reported, then you will see something like this:
45 |
46 | ...
47 | Wrote js/print_format_v3.min.js - 23.39 KB
48 | Wrote css/erpnext.css - 8 KB
49 | Wrote js/erpnext-web.min.js - 3.73 KB
50 | Wrote js/erpnext.min.js - 137.7 KB
51 | Wrote js/item-dashboard.min.js - 7.91 KB
52 | ________________________________________________________________________________
53 | Bench: Deployment tool for Frappe and ERPNext (https://erpnext.org).
54 | Open source depends on your contributions, so please contribute bug reports, patches,
55 | fixes or cash and be a part of the community
56 |
57 | Congratulations! Your non-production stage environment has been upgraded to the latest and greatest. Now you need to go into the user interface and test, test and test some more. Did we mention you need to test? Take the time to ensure that every feature of the system your company uses works as expected! Get some help from your fellow employees that are power users. The effort you take now will pay off in the long run.
58 |
59 | Once all testing is finished, the upgrade of the production environment is the same commands as upgrading the non-production stage environment. Just replace `erpnext-stg` with `erpnext-prd` and you are all set. Don't forget to take a [full backup](backup#Full "Backing Up ERPNext") just in case something goes wrong.
60 |
61 | sudo su - erpnext
62 | cd erpnext-prd/
63 | bench update --upgrade
64 | [any special commands you need to fix issues from troubleshooting]
65 | bench clear-cache
66 | bench clear-website-cache
67 | bench restart
68 |
69 | If you want to revert to the original code base, then [follow these instructions](revert "Reverting to an Older Version").
70 |
71 |
72 | ### 3.3.2 Upgrading from one minor version to another
73 |
74 | The steps to upgrade from a minor version to another is very similar to the procedure to upgrade from one major version to another. The admin guide *recommends* that site administrators upgrade code once a month in production environments (passing through the non-production environment just like in major upgrades). This provides a few benefits:
75 |
76 | * Your production environment will always be pretty close to the current code base.
77 | * Security issues discovered in the frappe framework are keeping your business safe.
78 | * Upgrades are less painful and require less troubleshooting as they often work much better than trying the major upgrade route.
79 | * The changes to the software are smaller and so any re-training of your users will be easier.
80 |
81 | To summarize the steps:
82 |
83 | 1. Take a [simple backup](backup#Simple "Backing up ERPNext") of the production database and a [full backup](backup#Full "Backing up ERPNext") of the stage environment.
84 | 1. [Restore](restore "Restoring from an ERPNext Backup") the production database to the stage environment.
85 | 1. Run `bench migrate`, `bench clear-cache`, `bench clear-website-cache`, and `bench restart` to get stage ready
86 | 1. Confirm that stage is operating like production.
87 | 1. Run `bench update` and then `bench restart` to update the stage environment to latest code.
88 | 1. Test, Test and Test some more. Leverage your power users.
89 | 1. Take a [simple and a full backup](backup "Backing up ERPNext") of the production database and environment.
90 | 1. Run `bench update` to update the production system to latest code.
91 | 1. Run `bench clear-cache`, `bench clear-website-cache`, and `bench restart` to get production ready
92 | 1. Get some coffee!
93 |
94 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.2.2 Installing Development Side by Side](install-dev "Installation of a Side by Side Development Environment") | Next: [3.3.3 Reverting to an Older Version](revert "Reverting to an Older Version")
95 |
--------------------------------------------------------------------------------
/introduction/help.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [2.1 Overview](overview "Overview of ERPNext") | Next [3.1 Frappe Bench](../i-u-b/bench "Frappe Bench")
2 |
3 | ## 2.2 Getting Help
4 |
5 | There are a number of places to get help with your ERPNext installation.
6 |
7 | * The first and obvious place to get help is the discuss forum at [https://discuss.erpnext.com/](https://discuss.erpnext.com/ "Discuss ERPNext"). Sign up and join the conversation!
8 |
9 | * ERPNext is based on the Frappe Framework. There is a separate discuss forum at [https://discuss.frappe.io/](https://discuss.frappe.io/ "Discuss Frappe Framework").
10 |
11 | * There is an open gitter chat group that you can sign into at [https://gitter.im/frappe/erpnext](https://gitter.im/frappe/erpnext "Gitter.im Channel for ERPNext").
12 |
13 | * There is the ERPNext GitHub repository at [https://github.com/frappe/erpnext](https://github.com/frappe/erpnext "ERPNext GitHub Repo"). This is where a person would enter in new issues and check out new releases. See [3.3 Upgrading](../i-u-b/upgrade "Upgrading ERPNext").
14 |
15 | * As any good system, there is a user manual at [https://erpnext.org/docs/user/manual/](https://erpnext.org/docs/user/manual/ "ERPNext User Manual"). If you have not read it from front to back, you should. The English language version is the most complete.
16 |
17 | * There are a number of helpful videos that the ERPNext team has created at [https://erpnext.org/docs/user/videos/learn/](https://erpnext.org/docs/user/videos/learn/ "ERPNext Video Tutorials").
18 |
19 | Home: [Table of Contents](../ "Table of Contents") | Previous: [2.1 Overview](overview "Overview of ERPNext") | Next [3.1 Frappe Bench](../i-u-b/bench "Frappe Bench")
20 |
--------------------------------------------------------------------------------
/introduction/overview.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.4 Typography](../preface/typography "Typography") | Next: [2.2 Getting Help](help "Getting Help")
2 |
3 | # 2.0 Introduction
4 |
5 | ## 2.1 Overview of ERPNext
6 |
7 | This chapter provides the reader of an overview of the ERPNext platform.
8 |
9 | From the ERPNext Documentation website at [https://erpnext.org/docs](https://erpnext.org/docs "ERPNext Docs") is this excerpt:
10 |
11 | > ERPNext is a fully featured ERP system designed for Small and Medium Sized business. ERPNext covers a wide range of features including Accounting, CRM, Inventory management, Selling, Purchasing, Manufacturing, Projects, HR & Payroll, Website, E-Commerce and much more.
12 |
13 | > ERPNext is based on the Frappe Framework is highly customizable and extendible. You can create Custom Form, Fields, Scripts and can also create your own Apps to extend ERPNext functionality.
14 |
15 | > ERPNext is Open Source under the GNU General Public License v3 and has been listed as one of the Best Open Source Softwares in the world by many online blogs.
16 |
17 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.4 Typography](../preface/typography "Typography") | Next: [2.2 Getting Help](help "Getting Help")
18 |
--------------------------------------------------------------------------------
/preface/audience.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.1 Foreword](foreword "Foreword") | Next: [1.3 Prerequisites](prerequisites "Prerequisites")
2 |
3 | ## 1.2 Audience
4 |
5 | This book targets technical resources who will be expected to install, manage, customize (tailor) and generally administrate [ERPNext]("https://erpnext.org" "ERPNext Website"). This is not a user manual for non-technical people, this is a technical manual for technicians.
6 |
7 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.1 Foreword](foreword "Foreword") | Next: [1.3 Prerequisites](prerequisites "Prerequisites")
8 |
--------------------------------------------------------------------------------
/preface/foreword.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [Readme / Index](../README "Readme / Index") | Next: [1.2 Audience](audience "Audience")
2 |
3 | # 1.0 Preface
4 |
5 | ## 1.1 Foreword
6 |
7 | This book was originally created in October 2016 as I began to install and manage an ERPNext 7.0.x installation. The first thing that I noticed was a lack of good administration level technical knowledge for the care and feeding of the platform. The user manual has both technical and non-technical information in it and was confusing to users and technicians alike. This manual was created out of a need to aggregate knowledge from the forums, wiki's, online manuals and other sources into a single place to aid me in managing my self-hosted installation for my small business. The Administrators Guide started out as a LibreOffice Writer document maintained by me. As I became more involved with the ERPNext community and continued to see more and more requests to the forum for basic help I decided to turn the document into Markdown text and publish to the public here at GitHub.
8 |
9 | James Robertson
November 2017
10 |
11 | Home: [Table of Contents](../ "Table of Contents") | Previous: [Readme / Index](../README "Readme / Index") | Next: [1.2 Audience](audience "Audience")
12 |
--------------------------------------------------------------------------------
/preface/prerequisites.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.2 Audience](audience "Audience") | Next: [1.4 Typography](typography "Typography")
2 |
3 | ## 1.3 Prerequisites
4 |
5 | To be proficient in the tasks that this book describes, the reader needs to have a good understanding of the following:
6 |
7 | * Linux server administration (any distribution is fine)
8 | * Installation, patching, users, hardening for hosting externally, etc.
9 | * Getting around the operating system, running shell commands, editing files, etc.
10 | * MySQL (or MariaDB) administration
11 | * The frappe `bench` utility does most of the work for the administrator, but having a good understanding of backups, restore, `innodb` file handling and other concepts is very important. The whole system lives in the database! This is the database that runs your business, so keep it managed.
12 | * If you plan to do any report writing, having a good understand of `SELECT`, `JOIN`, `WHERE` and other clauses for running queries is going to be handy.
13 | * `nginx` administration
14 | * This book gives some aid and recipes for tasks, but understanding the underlying architecture of the web server will come in handy.
15 |
16 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.2 Audience](audience "Audience") | Next: [1.4 Typography](typography "Typography")
17 |
--------------------------------------------------------------------------------
/preface/typography.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.3 Prerequisites](prerequisites "Prerequisites") | Next: [2.1 Overview of ERPNext](../introduction/overview "Introduction")
2 |
3 | ## 1.4 Typography
4 |
5 | To make things easier to follow in the book, there are a few typographical conventions used. This section contains some examples of the typographical format used throughout the ERPNext Administrator's Guide.
6 |
7 | ### 1.4.1 Code / Command Line
8 | The following example shows commands to be typed in at a command line, or other pre-formatted text form logs, error messages:
9 |
10 | bench use [site name]
11 | bench backup --with-files
12 | bench upgrade --upgrade
13 |
14 |
15 | ### 1.4.2 Replaceable Text
16 |
17 | Any text that is expected to be replaced by something site specific is contained inside of square brackets. In this example the user should place the name of the site (e.g. site1.local) as a replacement for [site name].
18 |
19 | bench use [site name]
20 |
21 | ### 1.4.3 Important
22 |
23 | Anything that is important to note to the reader is prefaced with **NOTE**:
24 |
25 | ### 1.4.4 Actions
26 |
27 | When describing actions to take in a set of instructions, button clicks are in **bold** font. It is assumed that the word "click" is synonymous with "tap" for touch sensitive interfaces.
28 |
29 | 1. Login to ERPNext with Administrator account
30 | 1. Click the **Login** button
31 | 1. Click **Setup** on the Desk
32 |
33 | ### 1.4.5 Names of Programs / Utilities
34 |
35 | The names of programs or utilities that are referenced in regular text will be in fixed width font, such as `sudo`, `su`, `cd`, or `bench`.
36 |
37 | ## 1.4.6 Path Navigation
38 |
39 | When working inside of ERPNext, the Administrators guide will give a click path to get to a particular document. The format will look like this:
40 |
41 | > Explore > Setup > Users > User
42 |
43 | In this example, the user clicks the Explore icon on the Desktop, navigates to the Setup module, looks for the Users header and clicks on the User document list.
44 |
45 | Home: [Table of Contents](../ "Table of Contents") | Previous: [1.3 Prerequisites](prerequisites "Prerequisites") | Next: [2.1 Overview of ERPNext](../introduction/overview "Introduction")
46 |
--------------------------------------------------------------------------------
/reporting/install-bi-dev.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [21.3 Installation of a Business Intelligence Engine](install-bi "Installation of a Business Intelligence Engine") | Next:
2 |
3 | ### 21.4 Installation of BI Development Environment
4 |
5 | Most people code in the [Eclipse IDE](https://en.wikipedia.org/wiki/Eclipse_(software) "Eclipse Software on WikiPedia"). The admin guide recommends that coding of reports also occur in the Eclipse IDE. These are the reasons:
6 |
7 | * The native Jasper Reports Studio that you download from the JasperSoft web site is a repackaged Eclipse IDE with only a single module enabled.
8 | * By using a generic installation of the Eclipse IDE you can not only download and install the Jasper Reports Studio, but also modules to support giving back to the ERPNext community and to this administrator's guide.
9 |
10 | Start by downloading the archive file (`zip` or `tar.gz`) of the "Eclipse IDE for JavaScript and Web Developers" from this web site: .
11 |
12 | **NOTE:** Eclipse Neon is not the latest version of the Eclipse IDE. However, at this time the JasperReports Studio module only supports Neon (v4.6) and not the latest Oxygen (v4.7) release. See the [release notes](https://community.jaspersoft.com/project/jaspersoft-studio/releases "JasperSoft Studio Releases"). Notice the bullet item "*RCP version is now based on Eclipse 4.6.3 platform*". When a future release comes out that supports RCP 4.7.x, then we can upgrade to Eclipse Oxygen.
13 |
14 | Once you have downloaded the IDE software compressed archive. Uncompress it to a directory of your choice. The admin guide recommends something simple like `C:\tools\eclipse-4.6-neon` for Windows machines or `~/tools/eclipse-4.6-neon` on MacOS or Linux.
15 |
16 | When finished, open the IDE:
17 | * Windows - run `eclipse.exe`
18 | * MacOS - run `Eclipse.app/Contents/MacOS/eclipse`
19 | * Linux - run `eclipse/eclipse`
20 |
21 | From the Welcome page, click to **Launch the Eclipse Marketplace**. Find and install the following:
22 |
23 | * Jaspersoft Studio
24 | * EGit - Git Integration for Eclipse 4.6.0
25 | * GitHub Flavored Markdown Viewer
26 | * GitHub Extensions
27 | * Markdown Text Editor
28 | * PyDev - Python IDE for Eclipse
29 | * Data Tools Platform
30 |
31 | After a restart of Eclipse, you will need to get the MariaDB Java `jar` files for the database client. Go to this website -- and download the latest stable files. Drop them to a known good location such as the root directory of your installation.
32 |
33 | Open the driver configuration
34 |
35 | > Window > Preferences > Data Management > Connectivity > Driver Definition
36 |
37 | Click Add, Pick *MySQL JDBC Driver* (any version). Click on the Jar List tab. Add the `mariadb-java-client-[x].[y].[z].jar` and `mariadb-java-client-[x].[y].[z]-javadoc.jar` files to the list. Remove any out of the box `mysql.jar` references. Click on the Properties tab. Change Connection URL to `jdbc:mysql://[server]:3306/[database]`, change Database Name to `[database]`, change Driver Class to `org.mariadb.jdbc.Driver`, and change User ID to `[user]. Click OK to Save.
38 |
39 | Now you are ready to create a connection to the server for reporting.
40 |
41 | Open the report design perspective.
42 |
43 | > Window > Perspective > Open Perspective > Other
44 |
45 | Select "Report Design" from the list of perspectives.
46 |
47 | Now you are ready to build some reports! Read the [documentation](https://community.jaspersoft.com/project/jaspersoft-studio/resources) online.
48 |
49 | Home: [Table of Contents](../ "Table of Contents") | Previous: [21.3 Installation of a Business Intelligence Engine](install-bi "Installation of a Business Intelligence Engine") | Next:
50 |
--------------------------------------------------------------------------------
/reporting/install-bi.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [21.2 Types of Reporting](types "Types of Reporting") | Next: [21.4 Installation of BI Development Environment](install-bi-dev "Installation of BI Development Environment")
2 |
3 | ## 21.3 Installation of a Business Intelligence Engine
4 |
5 | There are a number of excellent open source business intelligence (BI) reporting tools out there. The most well known and purely open source is the [Eclipse Business Intelligence Reporting Tool (BIRT)](http://www.eclipse.org/birt/). There is also the [JasperSoft JasperReports Server](https://community.jaspersoft.com/project/jasperreports-server). This open source project is backed by the commercial company TIBCO.
6 |
7 | The admin guide recommends JasperSoft JasperReports Server for an external BI Engine. The primary reason is there is a custom app available as an integration point in ERPNext between ERPNext and JasperReports. With this application installed in your ERPNext installation you don't have to maintain a separate reporting portal. Everything is available from the ERPNext Desk.
8 |
9 | ### 21.3.1 Installation of JasperSoft JasperReports Server
10 |
11 | JasperSoft has some great documentation here - - that you should definitely read over. Scroll down to the installation section of the page and download the installation guide. The community edition is what you will want to install for a base setup.
12 |
13 | **NOTE:** You don't have to install the JasperSoft JasperReports Server to run JasperReports in ERPNext. The custom application installed in the next step has a default option of hosting the reports locally. If you are just starting out, it is probably easiest to just install the app into ERPNext and host the reports locally.
14 |
15 | ### 21.3.2 Installation of Jasper Reports Custom ERPNext App
16 |
17 | There are two versions of the "Jasper EPNext Report" custom application. The original version was written by `saguas` and placed on GitHub here - . The repository has become stale (last commit was in 09/2016) and `consoleerp` has forked the original and made updates. The fork is on GitHub here - . We will install and use the `consoleerp` fork as it is more maintained.
18 |
19 | Recall that during [installation](../i-u-b/install "Installing ERPNext") that we remove `sudo` rights from the `erpnext` user. Follow these steps as another user with `sudo` rights to get started:
20 |
21 | # Ensure that the contrib library is enabled in /etc/apt/sources.list
22 | sudo apt-get update
23 | sudo apt-get install -y openjdk-8-jdk fonts-liberation fonts-freefont-ttf ttf-mscorefonts-installer
24 | sudo python -m pip install --upgrade pip setuptools
25 | sudo python -m pip install --upgrade cython
26 | sudo python -m pip install --upgrade pyjnius
27 |
28 | # Add JAVA_HOME to non-interactive, non-login shell environment
29 | echo -e """JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")""" | sudo \
30 | tee --append /etc/environment
31 | echo -e "JDK_HOME=$JAVA_HOME" | sudo tee --append /etc/environment
32 |
33 | # Add JAVA variables for interactive, login shell environments
34 | # Copy & Paste from sudo ... to EOF" into putty window
35 | sudo bash -c "cat < /etc/profile.d/java.sh
36 | #!/bin/bash
37 |
38 | #Setup Java JDK for all users
39 | export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
40 | export JDK_HOME=$JAVA_HOME
41 | export PATH=$PATH:$JAVA_HOME/bin
42 |
43 | EOF"
44 |
45 | # Restart the server
46 | sudo shutdown -r now
47 |
48 | Take a [simple and full backup](../i-u-b/backup "Backing up ERPNext") of the ERPNext environment. Always good practice before you install anything into ERPNext so you have a means to [revert](../i-u-b/revert "Reverting from a known good backup") to a known good state if something goes wrong.
49 |
50 | Assuming you are the `erpnext` user from the backup procedure, check for JAVA_HOME
51 |
52 | echo $JAVA_HOME
53 |
54 | Now install the application
55 |
56 | cd [bench name]
57 | bench get-app jasper_erpnext_report https://github.com/consoleerp/jasper_erpnext_report.git \
58 | 2>&1 | tee jasper-reports-install.log
59 | bench install-app jasper_erpnext_report 2>&1 | tee --append jasper-reports-install.log
60 |
61 | # This step will upgrade your environment to latest code along with installing the
62 | # python requirements for jasper_erpnext_report.
63 | bench update --requirements 2>&1 | tee --append jasper-reports-install.log
64 |
65 | #### 21.3.2.1 Setup Role Permissions Manager Permissions
66 |
67 | After the installation of the Jasper ERPNext Report application, an administrator (System Manager) will need to log on to ERPNext and setup roles in Role Permissions Manager.
68 |
69 | There are three doctypes that are installed:
70 |
71 | * Jasper Email Reports
72 | * Jasper Reports
73 | * JasperServerConfig
74 |
75 | The out of box configuration in Role Permissions Manager is out dated a bit. Open Role Permission Manager:
76 |
77 | > Explore > Setup > Permissions > Role Permissions Manager
78 |
79 | 1. Select **Jasper Email Reports**. Add a new role for System Manager and set to be the same as the out of box Administrator role.
80 |
81 | 1. Select **JasperServerConfig**. Add a new role for System Manager and set to be the same as the out of box Administrator role.
82 |
83 | 1. Select **Jasper Reports**.
84 | * Add a new role for System Manager Levels 0, 1 and 2 to be the same as the out of box Administrator role.
85 | * Remove the out of box roles for Accounts Manager Levels 0 and 2.
86 |
87 | What this will do is lock down the permissions to just the System Manager role to start. That way no one will see anything until you are ready.
88 |
89 | From the User menu, select **Reload** to clear the cache. Then open Jasper Erpnext Report
90 |
91 | > Explore > Jasper Erpnext Report
92 |
93 | #### 21.3.2.2 Setup MariaDB for Reporting
94 |
95 | If you need to be able to communicate to the server from a remote host, then follow these directions -- . This is usually needed as most administrators will want to use external database management tools and query "builder" tools to help develop the queries used for reporting.
96 |
97 | Some suggested management and "query" tools:
98 | * phpMyAdmin --
99 | * Eclipse Data Tools Platform (DTP) --
100 | * SQuirreL SQL Client --
101 |
102 | It is a best practice to run reports with a "reporting user". You can read this documentation -- . Create a reporting user in the MariaDB instance for your envrionment.
103 |
104 | # Logon to MariaDB
105 | mysql -u root -p
106 |
107 | # Create the user
108 | CREATE USER 'erpnext-reports'@'%' IDENTIFIED BY '[password]';
109 | GRANT SELECT ON *.* to 'erpnext-reports'@'%';
110 | FLUSH PRIVILEGES;
111 | exit;
112 |
113 | # Now test the new user
114 | mysql -u erpnext-reports -p
115 |
116 |
117 |
118 | Home: [Table of Contents](../ "Table of Contents") | Previous: [21.2 Types of Reporting](types "Types of Reporting") | Next: [21.4 Installation of BI Development Environment](install-bi-dev "Installation of BI Development Environment")
119 |
--------------------------------------------------------------------------------
/reporting/introduction.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: 20.4.3 Webhook | Next: [21.2 Types of Reporting](types "Types of Reporting")
2 |
3 | # 21.0 Reporting
4 |
5 | ## 21.1 Introduction
6 |
7 | Any organization is going to need reporting, especially from a platform that is used to run a business. This section goes into the types of reporting and gets an administrator ready to develop reports.
8 |
9 | Home: [Table of Contents](../ "Table of Contents") | Previous: 20.4.3 Webhook | Next: [21.2 Types of Reporting](types "Types of Reporting")
10 |
--------------------------------------------------------------------------------
/reporting/types.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [21.1 Introduction](introduction "Reporting Introduction") | Next: [21.3 Installation of External BI Engine](install-bi "Installation of External BI Engine")
2 |
3 | ## 21.2 Type of Reporting in ERPNext
4 |
5 | There are four types of reporting available for ERPNext. Three of them are them work great for non-programmers.
6 |
7 | 1. Internal JSON Based "Report Builder" Reports
8 | 1. Internal SQL "Query" Reports
9 | 1. Internal Python "Script" Reports
10 | 1. External Business Intelligence (BI) Engine based Reports.
11 |
12 | Numbers 1, 2 and 4 are great for non-programmer type administrators. Python "Script" based reports are great and integrated into the environment, however you have to have a understanding of python, the frappe framework and programming in order to create these kinds of reports. They also need to be installed into a "custom application" so that upgrades to ERPNext don't impact your changes. These kinds of reports are out of the scope of the admin guide.
13 |
14 | The ERPNext User Manual has another good overview of the three internal reporting types here:
15 |
16 |
17 |
18 | Here are links to documentation for the three internal reporting types:
19 |
20 | 1. Report Builder Reports - ERPNext has not created any. See below.
21 | 1. Query Reports -
22 | 1. Script Reports -
23 |
24 | To get a listing of all of the reports installed in your environment, search for the "**Report List**" in the quick search bar at the top of the Desk.
25 |
26 |
27 | ### 21.2.1 Report Builder Reports
28 |
29 | These are by far the easiest reports to create. Open the document list of the doctype you wish to create a simple report for. From the left menu, click **Reports** and then **Report Builder**.
30 |
31 | You can then:
32 | - Pick Columns
33 | - Set the Sort Order
34 | - Show a Totals Row
35 |
36 | #### Pick Columns
37 |
38 | This button allows you to select the field from the doctype that you want to report on.
39 |
40 | #### Set the Sort Order
41 |
42 | You can setup a quick default sort order for the various columns(s) in the report.
43 |
44 | #### Show a Totals Row
45 |
46 | If the report has number in it, such as an accounting report, then adding a totals row to the report might make sense.
47 |
48 | When finished, click **Save** to save the report.
49 |
50 | Home: [Table of Contents](../ "Table of Contents") | Previous: [21.1 Introduction](introduction "Reporting Introduction") | Next: [21.3 Installation of External BI Engine](install-bi "Installation of External BI Engine")
51 |
--------------------------------------------------------------------------------
/setup/domains.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [4.1 Setup](setup "Setup Wizard") | Next: [5 Explore > Setup](../explore-setup/setup "Explore > Setup")
2 |
3 | ## 4.2 Domains
4 |
5 | As of version 10.x of ERPNext, these are the available domains:
6 | * Agriculture (beta)
7 | * Distribution
8 | * Education
9 | * Healthcare (beta)
10 | * Manufacturing
11 | * Non Profit (beta)
12 | * Retail
13 | * Services
14 |
15 | ### 4.2.1 Agriculture
16 |
17 | The agriculture domain is used for businesses that operate as agricultural companies such as farms, ranches, etc. This is a very new domain to the ERPNext platform and has not been documented very well to date.
18 |
19 | Please see ERPNext documentation on this domain:
20 |
21 | The setup wizard will add the following desktop icons:
22 | * Agriculture Task
23 | * Crop
24 | * Crop Cycle
25 | * Fertilizer
26 | * Item
27 | * Land Unit
28 | * Disease
29 | * Plant Analysis
30 | * Soil Analysis
31 | * Soil Texture
32 | * Task
33 | * Water Analysis
34 | * Weather
35 |
36 | The setup wizard will add the following user roles:
37 | * Agriculture Manager
38 | * Agriculture User
39 |
40 | The setup wizard will enable the following modules:
41 | * Agriculture
42 |
43 | ### 4.2.2 Distribution Domain
44 |
45 | The distribution domain is for companies and move product in some manner. This can be a retail establishment, but there is a dedicated domain for that. Distribution companies are often operate in a wholesale environment and don't need point of sale (POS) type functionality, but do need to maintain stock and track sales and customers.
46 |
47 | The setup wizard will add the following desktop icons:
48 | * Item
49 | * Customer
50 | * Supplier
51 | * Lead
52 | * Sales Order
53 | * Purchase Order
54 | * Task
55 | * Sales Invoice
56 | * CRM
57 | * ToDo
58 |
59 | The setup wizard will add the following user roles:
60 | * None other than the standard out of box ones
61 |
62 | The setup wizard will enable the following modules:
63 | * None other than the standard out of box ones
64 |
65 | ### 4.2.3 Education Domain
66 |
67 | The education domain is for organizations that operate some kind of school or need to track students and other things for "classes". This domain was recently renamed from Schools to Education.
68 |
69 | Please see ERPNext documentation on this domain:
70 |
71 | The setup wizard will add the following desktop icons:
72 | * Student
73 | * Program
74 | * Course
75 | * Student Group
76 | * Instructor
77 | * Fees
78 | * Task
79 | * ToDo
80 | * Education
81 | * Student Attendance Tool
82 | * Student Applicant
83 |
84 | The setup wizard will add the following user roles:
85 | * Student
86 | * Instructor
87 | * Academics User
88 | * Education Manager
89 |
90 | The setup wizard will enable the following modules:
91 | * Education
92 |
93 | ### 4.2.4 Healthcare Domain
94 |
95 | The healthcare domain is for companies that run clinics or other healthcare facilities that need a electronic medical record (EMR) system. This is a very new domain to the ERPNext platform and has not been documented very well to date.
96 |
97 | Please see ERPNext documentation on this domain:
98 |
99 | The setup wizard will add the following desktop icons:
100 | * Patient
101 | * Patient Appointment
102 | * Consultation
103 | * Lab Test
104 | * Healthcare
105 | * Accounts
106 | * Buying
107 | * Stock
108 | * HR
109 | * ToDo
110 |
111 | The setup wizard will add the following user roles:
112 | * Healthcare Administrator
113 | * LabTest Approver
114 | * Laboratory User
115 | * Nursing User
116 | * Physician
117 | * Patient
118 |
119 | The setup wizard will enable the following modules:
120 | * None other than the standard out of box ones
121 |
122 | The setup wizard does customize the Sales Invoice DocType with a link to the Patient Appointment DocType to track the billing to the appointment for a patient.
123 |
124 | ### 4.2.5 Manufacturing Domain
125 |
126 | The manufacturing domain is for companies that "make" things. There is a huge list of potential manufacturing companies out there, so the Admin guide is not going to attempt to give an exhaustive list. As as administrator for your organization or client, you will know if you need the manufacturing domain.
127 |
128 | Please see ERPNext documentation on this domain:
129 |
130 | The setup wizard will add the following desktop icons:
131 | * Item
132 | * BOM (Bill of Materials)
133 | * Customer
134 | * Supplier
135 | * Sales Order
136 | * Purchase Order
137 | * Production Order
138 | * Task
139 | * Accounts
140 | * HR
141 | * ToDo
142 |
143 | The setup wizard will add the following user roles:
144 | * None other than the standard out of the box ones
145 |
146 | The setup wizard will enable the following modules:
147 | * None other than the standard out of the box ones
148 |
149 | The setup wizard does customize the Item DocType with a field named "manufacturing" that is collapsible and depends on the value for the "is_stock_item" field. In the manufacturing domain, maintaining the supply chain is one of the most important aspects of the business. Understanding the difference between what is "in stock" and available for shipping or fulfillment and what is and assembly component are very important. This field helps with that differentiation.
150 |
151 | The setup wizard also adjusts the default [stock settings](../explore/setup/stock/stock-settings "Stock Settings") so that "show barcode" is always shown on Items in the database.
152 |
153 | Lastly, the setup wizard sets the default portal role to "Customer".
154 |
155 | ### 4.2.6 Non-Profit Domain
156 |
157 | The non-profit domain is for organizations that operate as a special jurisdiction specific non-profit (non-taxable) entity. These are very special organizations that have much different needs that typical for-profit companies. The biggest difference is the need to track members, donors, volunteers, grants and other accounting specifics.
158 |
159 | Please see ERPNext documentation on this domain:
160 |
161 | The setup wizard will add the following desktop icons:
162 | * Non Profit
163 | * Member
164 | * Donor
165 | * Volunteer
166 | * Grant Application
167 | * Accounts
168 | * Buying
169 | * HR
170 | * ToDO
171 |
172 | The setup wizard will add the following user roles:
173 | * Non Profit Manager
174 | * Non Profit Member
175 | * Non Profit Portal User
176 |
177 | The setup wizard will enable the following modules:
178 | * Non Profit
179 |
180 | The setup wizard sets the default portal role to "Non Profit Manager".
181 |
182 | ### 4.2.7 Retail Domain
183 |
184 | The retail domain is for companies that sell things at "retail". This is different than organizations the operate in the manufacturing or distribution domains. These companies operate in the "pre-retail" phase of production. Non-Profit organization quite often sell items "at retail" as part of their operations.
185 |
186 | The setup wizard will add the following desktop icons:
187 | * POS (Point of Sale)
188 | * Item
189 | * Customer
190 | * Sales Invoice
191 | * Purchase Order
192 | * Accounts
193 | * Task
194 | * ToDo
195 |
196 | The setup wizard will add the following user roles:
197 | * None other than the standard out of the box ones
198 |
199 | The setup wizard will enable the following modules:
200 | * None other than the standard out of the box ones
201 |
202 | The setup wizard adjusts the default [stock settings](../explore/setup/stock/stock-settings "Stock Settings") so that "show barcode" is always shown on Items in the database.
203 |
204 | The setup wizard sets the default portal role to "Customer".
205 |
206 | ### 4.2.8 Service Domain
207 |
208 | The services domain is for organizations that conduct professional services (i.e. Lawyers, Consultants). A lot of organizations, especially retail companies also have a services arm. This domain is often combined with retail, but not always.
209 |
210 | The setup wizard will add the following desktop icons:
211 | * Project
212 | * Timesheet
213 | * Customer
214 | * Sales Order
215 | * Sales Invoice
216 | * CRM (Customer Relationship Management)
217 | * Task
218 | * Expense Claim
219 | * Employee
220 | * HR
221 | * ToDo
222 |
223 | The setup wizard will add the following user roles:
224 | * None other than the standard out of the box ones
225 |
226 | The setup wizard will enable the following modules:
227 | * None other than the standard out of the box ones
228 |
229 | The setup wizard adjusts the default [stock settings](../explore/setup/stock/stock-settings "Stock Settings") so that "show barcode" is not always shown on Items in the database.
230 |
231 | The setup wizard sets the default portal role to "Customer".
232 |
233 | Home: [Table of Contents](../ "Table of Contents") | Previous: [4.1 Setup](setup "Setup Wizard") | Next: [5 Explore > Setup](../explore-setup/setup "Explore > Setup")
234 |
--------------------------------------------------------------------------------
/setup/setup.md:
--------------------------------------------------------------------------------
1 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.5 Restoring from a Previous Backup](../i-u-b/restore "Restoring from a Previous Backup") | Next: [4.2 Domains](domains "Domains")
2 |
3 | # 4.0 Setup
4 |
5 | ## 4.1 The Setup Wizard
6 |
7 | The Setup Wizard handles all of the initial setup steps on a brand new install. Once [installation](../i-u-b/install "Install ERPNext") has been completed and confirmed, open a browser window to the network name you gave the installation. Logon with user `Administrator` and the password you gave `install.py` at installation. If you don't recall the password, it was saved for you.
8 |
9 | sudo cat /home/erpnext/passwords.txt
10 |
11 | The `admin_password` is what you are looking for.
12 |
13 | The current users manual does a good job explaining the Setup Wizard. The Setup Wizard will walk you through a collection of questions to do a base setup of your company. See [4.2 Domains](domains "ERPNext Domains") for more information on the impact of selecting a domain for your organization.
14 |
15 |
16 |
17 | When the Setup Wizard as completed, you will be redirected to the ERPNext Desk (Desktop) as the user that you created during the wizard. You will then be prompted to answer another set of questions to complete the initial setup of your environment.
18 |
19 | Home: [Table of Contents](../ "Table of Contents") | Previous: [3.5 Restoring from a Previous Backup](../i-u-b/restore "Restoring from a Previous Backup") | Next: [4.2 Domains](domains "Domains")
20 |
--------------------------------------------------------------------------------