Skip to main content

Alliance Auth Plugin

Project description

Invoice Manager

Invoice module for AllianceAuth with simplicity and extendability in mind.

Included Bits and Bobs:

  • Simple Invoice Model
    • Assigned to Character
    • Due Dates
    • Invoice Ref used for tracking payments
    • Notifications
  • Simple task for checking for payments

The ToDo List:

  • Make Payment Corp selectable at invoice level
  • Add the Open info in game from SRP-Mod

Installation

  1. this app is built as a sub module of corptools, please install this first.
  2. Install the app pip install -U allianceauth-invoices
  3. Add 'invoices', to your INSTALLED_APPS in your projects local.py
  4. run migrations, collect static and restart auth
    • python manage.py migrate invoices
    • python manage.py collectstatic
    • supervisorctrl restart all
  5. go go the following address to set up default cron tasks AUTH ADDRESS/invoice/admin_create_tasks/
  6. setup your perms as documented below
  7. add characters and corp tokens as required
  8. Setup update tasks if you wish for the data to be auto updated. See Usage Below.

Updates

  1. Install the app pip install -U allianceauth-invoices
  2. run migrations, collect static and restart auth
    • python manage.py migrate invoices
    • python manage.py collectstatic
    • supervisorctrl restart all

Set Corp ID

Add the below lines to your local.py settings file, Changing the contexts to yours.

## Settings for Invoice Manager
PAYMENT_CORP = 123456789

You can optionally se the name of the app in the ui by setting this setting

## name for Invoice Manager
INVOICES_APP_NAME = "Invoices Pay Now!"

Permissions

There are some basic access perms

Admin perms are filtered by main character, if a person has neutral alts loaded their invoices will also be visible to someone who can see their main.

Perm Admin Site Perm Description
access_invoices nill Can Access the Invoice App. Generic Access perm to show the Invoice menu option
view_all nill Can View All Invoices. Superuser level access
view_alliance nill Can View Own Alliances Invoices. Alliance only level access
view_corp nill Can View Own Corps Invoices. Corp restricted level access

Notification Settings

You can disable the notifications generated by this app for either discord or auth by setting the following to false the defaults are True

## No Auth Notifications
INVOICES_SEND_AUTH_NOTIFICATIONS = False


## No Discord Notifications
INVOICES_SEND_DISCORD_BOT_NOTIFICATIONS = False

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

allianceauth-invoices-0.1.5.tar.gz (650.5 kB view details)

Uploaded Source

File details

Details for the file allianceauth-invoices-0.1.5.tar.gz.

File metadata

  • Download URL: allianceauth-invoices-0.1.5.tar.gz
  • Upload date:
  • Size: 650.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for allianceauth-invoices-0.1.5.tar.gz
Algorithm Hash digest
SHA256 96133fafc9c19590a1b608d333f575df937dcb7beda25a620a25b1c27fb023c5
MD5 c4df887322cef1d93b206cf7529972be
BLAKE2b-256 6d541b46049710ba52d7f7192bde4273d6763e17abecb34a8d7e7eaf119e5e32

See more details on using hashes here.

Supported by

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