Generalize email system with invoice workflow and Stiftungsgeschichte category
- Rename DestinataerEmailEingang → EmailEingang with category support (destinataer, rechnung, land_pacht, stiftungsgeschichte, allgemein) - Add invoice capture workflow: create Verwaltungskosten from email, link DMS documents as invoice attachments, track payment status - Add Stiftungsgeschichte email category with auto-detection patterns (Ahnenforschung, Genealogie, Chronik, etc.) and DMS integration - Update poll_emails task with category detection and DMS context mapping - Show available history documents in Geschichte editor sidebar - Consolidate DMS views, remove legacy dokument templates - Update all detail/form templates for DMS document linking - Add deploy.sh script and streamline compose.yml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,25 +30,6 @@ def get_config(key, default=None, fallback_to_settings=True):
|
||||
return value if value is not None else default
|
||||
|
||||
|
||||
def get_paperless_config():
|
||||
"""
|
||||
Get all Paperless-related configuration values
|
||||
|
||||
Returns:
|
||||
dict: Dictionary containing all Paperless configuration
|
||||
"""
|
||||
return {
|
||||
"api_url": get_config("paperless_api_url"),
|
||||
"api_token": get_config("paperless_api_token"),
|
||||
"destinataere_tag": get_config("paperless_destinataere_tag"),
|
||||
"destinataere_tag_id": get_config("paperless_destinataere_tag_id"),
|
||||
"land_tag": get_config("paperless_land_tag"),
|
||||
"land_tag_id": get_config("paperless_land_tag_id"),
|
||||
"admin_tag": get_config("paperless_admin_tag"),
|
||||
"admin_tag_id": get_config("paperless_admin_tag_id"),
|
||||
}
|
||||
|
||||
|
||||
def set_config(key, value, **kwargs):
|
||||
"""
|
||||
Set a configuration value
|
||||
@@ -63,13 +44,3 @@ def set_config(key, value, **kwargs):
|
||||
"""
|
||||
return AppConfiguration.set_setting(key, value, **kwargs)
|
||||
|
||||
|
||||
def is_paperless_configured():
|
||||
"""
|
||||
Check if Paperless is properly configured
|
||||
|
||||
Returns:
|
||||
bool: True if API URL and token are configured
|
||||
"""
|
||||
config = get_paperless_config()
|
||||
return bool(config["api_url"] and config["api_token"])
|
||||
|
||||
Reference in New Issue
Block a user