Register doctype_list_js for Customer and add customer_list.js, which lists customers with overdue invoices in a selection dialog (checkbox table + select-all), then calls generate_statements and opens the printable, one-page-per-customer document in a new window. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
36 lines
751 B
Python
36 lines
751 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"
|
|
]
|
|
|
|
# Load on Sales Invoice form
|
|
doctype_js = {
|
|
"Sales Invoice": "public/js/sales_invoice.js"
|
|
}
|
|
|
|
# Load on Customer list view (adds "Generate Statements" action)
|
|
doctype_list_js = {
|
|
"Customer": "public/js/customer_list.js"
|
|
}
|
|
|
|
# Fixtures tracked in Git
|
|
fixtures = [
|
|
{
|
|
"dt": "Print Format",
|
|
"filters": [
|
|
["name", "in", [
|
|
"NS Invoice",
|
|
"NS Sales Order",
|
|
"NS Quotation"
|
|
]]
|
|
]
|
|
}
|
|
]
|