Initial commit: fixtures, hooks, doctype events, API, and JS

This commit is contained in:
Westech Admin
2026-05-16 23:35:51 +00:00
commit 3a3c01194e
35 changed files with 16910 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
app_name = "westech_r2"
app_title = "Westech R2"
app_publisher = "Westech"
app_description = "R2 Tracking for Westech Recyclers"
app_email = ""
app_license = "MIT"
# Fixtures - these will be exported/imported
fixtures = [
"Custom Field",
"DocType",
"Workspace",
]
# Required apps
required_apps = ["erpnext"]
# DocType event hooks
doc_events = {
"Pallet": {
"before_save": "westech_r2.doctype.pallet.pallet.update_serial_nos",
},
"Scheduled Pickup": {
"before_save": "westech_r2.doctype.scheduled_pickup.scheduled_pickup.set_title",
},
"Load": {
"before_save": "westech_r2.doctype.load.load.calculate_totals",
},
}
# Include JS in forms
app_include_js = [
"/assets/westech_r2/js/scheduled_pickup.js",
"/assets/westech_r2/js/load.js",
"/assets/westech_r2/js/pallet.js",
]