Skip to content

Domain deep dive — Incorporation & application

Single D1 narrative for engineers working on incorporation, Application lifecycles, website / portal commerce, and PDF / DocuSign outputs. It ties together:

In scopeOut of scope (link instead)
Application master, officers, packages, orders, printoutsFull corporate secretarial AGM scheduler detail — AGM & scheduler, corporate-agm
Website content, FAQs, Singpass-facing tablesDeep Singpass API mechanics — Singpass
Orders, Billing, checkout → emailCore Sales Invoice GL design — ERPNext docs + Finance & AR
PDF generation, Printouts TableExternal pdf.pregoi.com SLA — ops / vendor

The folder incorporation-application groups Application, Billing, Orders, package and service child tables, website FAQ/content, visa, virtual office, and more. Use the category index as a sitemap, not a runtime bounded context.

Sub-themeExamples
Core workflowapplication, billing, orders, activity / activity_list
Commercialpackage_types, orders, promotion_code, additional_services
Documents & PDFsprintouts_table, printouts_table_template, officer/shareholder child tables
Websitewebsite_content, website_faq_*, singpass_myinfo
Servicesvirtual_office, secretary_service, registered_address_service, visa_*
LayerPrimary locations
Applicationlee_kim_alliance_erp/doctype/application/application.py, on_update/generate_pdfs.py
Hookshooks.pyApplication on_updategenerate_pdfs; Billing after_inserttasks.handle_billing (Doc events)
Tasks / emailtasks.pyhandle_billing, payment-success templates
Websiteincorporate/ app, hooks.py website_redirects (Incorporate)
IntegrationsDocuSign from Application context — DocuSign; payments — Stripe

Documents

Core

Website / portal

Package types

Orders

Application

Billing

Printouts Table

Keys are DocType folder names (snake_case). See docs/doctype-overlays/overlays.json and docs/doctype-overlays/README.md.

PriorityDocType keysRationale
P1 — Overlays presentapplication, billing, orders, package_types, printouts_tableHead documents, commerce, PDF child rows
P2additional_services, website_faq_category, activity, virtual_office, orders_listFrequent support; add overlays when incidents repeat
P3Narrow child tables (package feature tables, visa filters, etc.)Field table + link to this page

After editing overlays, run npm run generate:doctypes from docs/ and commit generated doctype-reference/** if your team tracks them.

SymptomFirst checks
PDFs missing / wrong templateApplication lifecycleadditional_context_generators, Printouts Table rows
Payment email not sentBilling flowstatus, service_type, payment_for
Website package mismatchPackage Types Stripe IDs vs dashboard; Orders payment_status / service_type
Redirect loop or wrong landinghooks.py website_redirects, Incorporate

Logs: Frappe Error Log, Console Log (PDF paths in application.py), server stderr for Python tracebacks.