Installation, Setup, and Configuration
Installation and setup#
Prerequisites#
- ERPNext/Frappe environment with Bench
- Installed dependency app:
erpnext(required by hooks) - Site admin access
Install#
bench get-app <uph-repository-url>
bench --site <site-name> install-app uph
bench --site <site-name> migrate
bench build --app uph
bench restartPost-install initialization#
The app defines an after_install entrypoint and boot-time setup hooks. After install:
- Open Party Master Settings.
- Seed/validate party type table and document type mappings.
- Create/update custom
party_masterfields on configured doctypes. - Confirm
party_masterappears in target forms.
Configuration reference#
Party Master Settings#
Main configuration areas inferred from the settings controller:
- Party types rules (
reqd,allowed,rule_fieldname) - Document type mappings
document_typeparent_doctypeparty_fieldnameparty_type_fieldname- dynamic-party-type behavior
- Party master fields mapping table for source/target field sync
The settings controller validates field existence and can reject non-system-manager edits for sensitive operations.
Recommended rollout sequence#
- Configure party-type rules.
- Configure transactional doctypes that need
party_master. - Sync custom fields.
- Backfill or relink existing records.
- Enable/adjust data quality rules.
- Validate with health and account reports.
Usage examples#
Example A: Link existing parties#
- Create Party Master
PM-ACME. - Add roles: Customer + Supplier.
- Assign existing Customer/Supplier records to
PM-ACME. - Save and verify linked count + report visibility.
Example B: Auto-manage party master in transactions#
- In settings, map
Sales InvoiceandPurchase Invoice. - Ensure
party_fieldnamepoints tocustomer/supplier. - Save mapping and regenerate fields.
- Create new transactions and verify
party_masteris set/validated.
Example C: Data quality enforcement#
- Create Data Quality Rule for Customer.
- Add conditions (Exact + Fuzzy match on name/phone/email).
- Set action to warn or block.
- Save a record and review duplicate alert behavior.