Skip to main content

Tax System module for Alliance Auth

Project description

Tax System module for AllianceAuth.

A Tax System for Corporation to Monitor Payments like Renting Tax, etc.


Features

  • Corporation Tax System
    • Member Tracking
      • Check Member is registred in Auth
      • Check Member is Alt Char
    • Payment System
      • Allocate User from Member Tracking
      • Automatic Payment Tracking
      • Automatic Payment Approvment
      • Filtering Amount, Reason, Date
        • Support Hooks for Add more Filters
    • Payments
      • Track Payments that meets filters

Upcoming

  • Notify one time via Discord
  • Alliance level tax system

Installation

[!NOTE] AA Tax System needs at least Alliance Auth v4.6.0 Please make sure to update your Alliance Auth before you install this APP

Step 1 - Install the Package

Make sure you're in your virtual environment (venv) of your Alliance Auth then install the pakage.

pip install aa-taxsystem

Step 2 - Configure Alliance Auth

Configure your Alliance Auth settings (local.py) as follows:

  • Add 'allianceauth.corputils', to INSTALLED_APPS
  • Add 'eveuniverse', to INSTALLED_APPS
  • Add 'taxsystem', to INSTALLED_APPS

Step 3 - Add the Scheduled Tasks

To set up the Scheduled Tasks add following code to your local.py

CELERYBEAT_SCHEDULE["taxsystem_update_all_taxsytem"] = {
    "task": "taxsystem.tasks.update_all_taxsytem",
    "schedule": crontab(minute=0, hour="*/1"),
}

Step 4 - Migration to AA

python manage.py collectstatic
python manage.py migrate

Step 5 - Setting up Permissions

With the Following IDs you can set up the permissions for the Tax System

ID Description
basic_access Can access the Tax System module All Members with the Permission can access the Tax System.
manage_access Can manage Tax System Can modify/remove tax settings.
create_access Can add Corporation Users with this permission can add corporation.

Step 6 - (Optional) Setting up Compatibilies

The Following Settings can be setting up in the local.py

  • TAXSYSTEM_APP_NAME: "YOURNAME" - Set the name of the APP
  • TAXSYSTEM_LOGGER_USE: True / False - Set to use own Logger File
  • TAXSYSTEM_CORP_MEMBERS_SKIP_DATE: 1 - Set Skip Task Time in Days
  • TAXSYSTEM_CORP_WALLET_SKIP_DATE: 1 - Set Skip Task Time in Hours
  • TAXSYSTEM_CORP_PAYMENTS_SKIP_DATE: 1 - Set Skip Task Time in Hours
  • TAXSYSTEM_CORP_PAYMENT_SYSTEM_SKIP_DATE: 1 - Set Skip Task Time in Hours

If you set up TAXSYSTEM_LOGGER_USE to True you need to add the following code below and ensure you have permission on logs folder:

LOGGING_TAXSYSTEM = {
    "handlers": {
        "taxsystem_file": {
            "level": "INFO",
            "class": "logging.handlers.RotatingFileHandler",
            "filename": os.path.join(BASE_DIR, "log/taxsystem.log"),
            "formatter": "verbose",
            "maxBytes": 1024 * 1024 * 5,
            "backupCount": 5,
        },
    },
    "loggers": {
        "taxsystem": {
            "handlers": ["taxsystem_file", "console"],
            "level": "INFO",
        },
    },
}
LOGGING["handlers"].update(LOGGING_TAXSYSTEM["handlers"])
LOGGING["loggers"].update(LOGGING_TAXSYSTEM["loggers"])

Highlights

Tax System 1 Tax System 2

[!NOTE] Contributing You want to improve the project? Just Make a Pull Request with the Guidelines. We Using pre-commit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aa_taxsystem-0.5.0.tar.gz (136.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aa_taxsystem-0.5.0-py3-none-any.whl (188.7 kB view details)

Uploaded Python 3

File details

Details for the file aa_taxsystem-0.5.0.tar.gz.

File metadata

  • Download URL: aa_taxsystem-0.5.0.tar.gz
  • Upload date:
  • Size: 136.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for aa_taxsystem-0.5.0.tar.gz
Algorithm Hash digest
SHA256 91f1273736fe691ab4493af5698a08f37258afc32df621fc6877d6e5561083c3
MD5 7900c9daeb9aa1cd301d8d53a2f1a61d
BLAKE2b-256 3d992d3df6a8ec119169f3fb8b2d435555e0894b4401bf4eb45420d711d56ac2

See more details on using hashes here.

File details

Details for the file aa_taxsystem-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: aa_taxsystem-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 188.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for aa_taxsystem-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74d1a29b541474c9ec5c8d6ae869c64cb347cb94357c987b67c2e5a069d992e2
MD5 b50f0f8c0e1efb62621edae8c88ff980
BLAKE2b-256 63823fd653fe45383d4b87e106fcc7898d500477771d4bb4a49bbd1573b81bcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page