Skip to main content

Moon and Ratting taxes based on corp usage

Project description

aa-corptax

aa-corptax can generate tax invoices for ratting and moon mining taxes. Rather then charge induviduale the app focus tax infomation based on corp usage.

This app is highly ajusted to the Razor Alliance and I wouldn't recomment to use for anything else.

Features

  • Moon Mining
  • Ratting tax
  • Provides a "preview" for the current month
  • Provide a list of corp members moon mining activity
  • couple of small bibs and bobs for Razor Alliance

Installing aa-corptax

You need Alliance Auth => 4.0 You need to have the following apps installed

  • allianceauth-corptools
  • allianceauth-discordbot
  • aa-moonmining
  • aa-structures
  • django-eveuniverse
git clone https://git.ecdf.ed.ac.uk/jwinter/aa-corptax.git
pip install -e aa-corptax

Add corptax to your installed app

Run migration and restart AA

python ~/myauth/manage.py migrate
python ~/myauth/manage.py collectstatic --noinput

Add the following task and settings to your config

DUE_DATE_DAYS=7
FALLBACK_CEO=2118611399
EXCEPTIONAL_MOON_TAX=0.35
RARE_MOON_TAX=0.15
UNCOMMON_MOON_TAX=0.025
COMMON_MOON_TAX=0.025
UBIQUITOUS_MOON_TAX=0.025
RATTING_TAX=0.1
RENT_RATTING_TAX=0.15
ACCOUNTED_ALLIANCE=[741557221, 99007906]
TROIKA_NOTIFY=["Triolag", "Dejar_Winter"]
CELERYBEAT_SCHEDULE['corptax_task_moon_tax'] = {
    'task': 'corptax.tasks.task_moon_tax',
    'schedule': crontab(minute='0', hour='6', day_of_month='1'),
}
CELERYBEAT_SCHEDULE['corptax_task_ratting_tax'] = {
    'task': 'corptax.tasks.task_ratting_tax',
    'schedule': crontab(minute='0', hour='6', day_of_month='1'),
}
CELERYBEAT_SCHEDULE['corptax_task_moon_tax_preview'] = {
    'task': 'corptax.tasks.task_moon_tax_preview',
    'schedule': crontab(minute=30, hour='*/3'),
    'apply_offset': True
}
CELERYBEAT_SCHEDULE['corptax_task_ratting_tax_preview'] = {
    'task': 'corptax.tasks.task_ratting_tax_preview',
    'schedule': crontab(minute=30, hour='*/3'),
    'apply_offset': True
}
CELERYBEAT_SCHEDULE['corptax_task_moon_drill_tax'] = {
    'task': 'corptax.tasks.task_moon_drill_tax',
    'schedule': crontab(minute='0', hour='6', day_of_month='1'),
}

CELERYBEAT_SCHEDULE['corptax_task_corp_stats_update'] = {
    'task': 'corptax.tasks.task_corp_stats_update',
    'schedule': crontab(minute=20, hour='*/1'),
    'apply_offset': True
}

CELERYBEAT_SCHEDULE['corptax_task_alliance_finance'] = {
    'task': 'corptax.tasks.task_alliance_finance',
    'schedule': crontab(minute='30', hour='6', day_of_month='1'),
}

CELERYBEAT_SCHEDULE['corptax_task_alliance_finance_current'] = {
    'task': 'corptax.tasks.task_alliance_finance_current',
    'schedule': crontab(minute=20, hour='*/1'),
    'apply_offset': True
}
CELERYBEAT_SCHEDULE['corptax_task_check_corp_tax'] = {
    'task': 'corptax.tasks.task_check_corp_tax',
    'schedule': crontab(minute="*/10"),
    'apply_offset': True
}

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

corptax-0.1.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

corptax-0.1.1-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

Details for the file corptax-0.1.1.tar.gz.

File metadata

  • Download URL: corptax-0.1.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for corptax-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58d69e9a960462c41da07d9afda2864db60e153b67d78e040baa7f818d8cb482
MD5 1fb2e74bb5f8cc052e5dbd054ed6c399
BLAKE2b-256 d98dffa8e61b156aa2cb898990c7d5cae6fb4d0dbef13bfc9a9cdb8b00809aa0

See more details on using hashes here.

File details

Details for the file corptax-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: corptax-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 49.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for corptax-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2d6277f798f766727a8475e7c6cb7078a2c2b4bd47c0d65dfedae4d78890bad
MD5 8add6d8c83cd037bacb6029c221d1670
BLAKE2b-256 1cb5366d7415bc395c61a2bb7708a3e79b8b0bce61cd92028dc96f5350a0f504

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