Replace customer_list.js with customer_statements.js (loaded globally), which adds the statement UI to both entry points: - Customer list: 'Generate Statements' multi-select action. - Customer form: 'Generate Statement' button for a single customer. Both open a popup with a 'Generate late payment fee' checkbox (default on) that maps to generate_statements(skip_late_fee), so fee billing can be turned off per run. Shared generate/print helpers live on ns_statements. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
761 B
Python
35 lines
761 B
Python
app_name = "ns_app"
|
|
app_title = "NS App"
|
|
app_publisher = "NS Innovations"
|
|
app_description = "Custom ERPNext extensions"
|
|
app_email = "dev@nsinnovations.net"
|
|
app_license = "MIT"
|
|
|
|
# Load on every page
|
|
app_include_js = [
|
|
"/assets/ns_app/js/customer_quick_entry.js",
|
|
"/assets/ns_app/js/customer_statements.js"
|
|
]
|
|
|
|
# Load on Sales Invoice form
|
|
doctype_js = {
|
|
"Sales Invoice": "public/js/sales_invoice.js"
|
|
}
|
|
|
|
# Ensure custom fields exist after every migrate
|
|
after_migrate = "ns_app.setup.after_migrate"
|
|
|
|
# Fixtures tracked in Git
|
|
fixtures = [
|
|
{
|
|
"dt": "Print Format",
|
|
"filters": [
|
|
["name", "in", [
|
|
"NS Invoice",
|
|
"NS Sales Order",
|
|
"NS Quotation"
|
|
]]
|
|
]
|
|
}
|
|
]
|