Business logic flows
Purpose
Section titled “Purpose”Cross-link flows that span hooks, APIs, and integrations.
Payroll (Salary Slip)
Section titled “Payroll (Salary Slip)”See diagram and chain in Payroll & HR. Validation order is fixed in hooks.py.
Xero invoice lifecycle
Section titled “Xero invoice lifecycle”See Xero integration for webhook and create_lk_erp_invoice / update_lk_erp_invoice.
Application → PDFs
Section titled “Application → PDFs”flowchart LR A[Application on_update] --> G[generate_pdfs] G --> F[Files / attachments]Handler: leekimerp.lee_kim_alliance_erp.doctype.application.on_update.generate_pdfs.generate_pdfs
Billing insert
Section titled “Billing insert”Billing after_insert → leekimerp.tasks.handle_billing — see tasks.py for downstream effects.
Stripe payment
Section titled “Stripe payment”See Stripe integration and webhook path in stripe_webhook.py.
Dependencies
Section titled “Dependencies”Combine Doc events with integration pages for full picture.