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 = [
    "DocType",
    "Custom Field",
    "Client Script",
    "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",
    },
    "Serial No": {
        "validate": "westech_r2.westech_r2.api.serial_hooks.validate_hardware_tests",
    },
    "Load": {
        "before_save": "westech_r2.doctype.load.load.calculate_totals",
    },
}


app_include_css = "/assets/westech_r2/css/westech_theme.css"
