ERPNext is het enterprise resource planning (ERP) systeem binnen ASD-PMA. Het biedt modules voor boekhouding, HR, projecten, inkoop, verkoop en meer.
| Eigenschap | Waarde |
|---|---|
| Poort | 9103 |
| Container | asd-erpnext |
| Database | MariaDB (asd-erpnext-mariadb) |
| Cache | Redis (asd-erpnext-redis-cache) |
| Queue | Redis (asd-erpnext-redis-queue) |
| Health endpoint | /api/method/ping |
| Categorie | ERP |
| Classificatie | Primary |
| Module | Functie |
|---|---|
| Accounting | Boekhouding, facturen, BTW |
| HR | Personeel, verlof, salarissen |
| Projects | Projecten, taken, timesheet |
| Buying | Inkoop, leveranciers |
| Selling | Verkoop, klanten, offertes |
| Stock | Voorraad, magazijn |
| CRM | Leads, opportunities |
| Assets | Vaste activa |
ERPNext gebruikt de Frappe REST API.
# Login en krijg cookies
curl -X POST "http://localhost:9103/api/method/login" \
-H "Content-Type: application/json" \
-d '{"usr": "Administrator", "pwd": "YOUR_PASSWORD"}' \
-c cookies.txt
# API call met cookies
curl "http://localhost:9103/api/resource/Customer" \
-b cookies.txt | jq .
# Met API key en secret
curl "http://localhost:9103/api/resource/Customer" \
-H "Authorization: token API_KEY:API_SECRET" | jq .
# Lijst documenten
curl "http://localhost:9103/api/resource/Sales Order" \
-b cookies.txt | jq .
# Document ophalen
curl "http://localhost:9103/api/resource/Customer/CUST-0001" \
-b cookies.txt | jq .
# Document aanmaken
curl -X POST "http://localhost:9103/api/resource/Task" \
-b cookies.txt \
-H "Content-Type: application/json" \
-d '{
"subject": "Nieuwe taak",
"project": "PROJ-0001"
}'
| Command | Omschrijving |
|---|---|
just start erpnext |
Start ERPNext stack |
just stop erpnext |
Stop ERPNext |
just status erpnext |
Bekijk status |
just logs erpnext |
Bekijk logs |
just info erpnext |
Service info |
just backup erpnext |
Backup database |
# Bench shell
docker exec -it asd-erpnext-backend bench console
# Migrate
docker exec -it asd-erpnext-backend bench migrate
# Clear cache
docker exec -it asd-erpnext-backend bench clear-cache
ERPNext ondersteunt Social Login via OAuth2:
sso:
type: frappe
redirect_path: /api/method/frappe.integrations.oauth2_logins.custom/authentik
configured: true
# SSO status
just sso-check erpnext
# Social Login Provider
# Setup > Integrations > Social Login Key
ERPNext kan communiceren met n8n via:
| Integratie | Beschrijving |
|---|---|
| Redmine Sync | Tijd logging van Redmine |
| Invoice Alerts | Factuur reminders via Mattermost |
| Stock Alerts | Voorraad waarschuwingen |
| Report Export | Automatische rapporten |
# Check alle ERPNext containers
docker ps --filter "name=asd-erpnext" --format "table {{.Names}}\t{{.Status}}"
# Backend logs
docker logs asd-erpnext-backend --tail 100
# MariaDB status
docker exec asd-erpnext-mariadb mysqladmin ping -u root -p
# Check database
docker exec asd-erpnext-mariadb mysql -u root -p -e "SHOW DATABASES;"
# Worker logs
docker logs asd-erpnext-worker-short --tail 50
# Redis queue
docker exec asd-erpnext-redis-queue redis-cli INFO