Skip to main content

Send and manage bills in juntagrico.

Project description

juntagrico-billing

juntagrico-ci Maintainability Test Coverage image image

This is an extension for juntagrico. You can find more information about juntagrico here (https://github.com/juntagrico/juntagrico).

It provides the following features for juntagrico:

  • creating managing bills (invoices) for juntagrico subscriptions
  • display of bills as HTML or PDF
  • support for swiss qr bill with reference number
  • manage payments for bills
  • reading camt.054 payment files (in connection with qr bills and refnumer)
  • bookkeeping export covering bills and payments

Installation

Install juntagrico-billing via pip pip install juntagrico-billing

or add it to your main django projects requirements.txt: juntagrico-billing

You may also install from github source (or add it to requirements.txt): pip install git+https://github.com/juntagrico/juntagrico-billing.git

In your juntagrico.settings.py add juntagrico_billing somewhere above juntagrico:

INSTALLED_APPS = (
    'juntagrico_billing',
    'juntagrico',
    ...

In your urls.py you also need to add the new pattern:

urlpatterns = [
    ...
    path('',include('juntagrico_billing.urls')),
]

As the billing app introduces its own database tables, you need to apply migrations after installing. Execute python manage.py migrate in your main django project.

Configuration

Set these in your settings.py to modify juntagrico-billing

BILLS_USERMENU

Set to True to add "bills" to the user menu.

default value: False

DUEDATE_NOTICE_URL

Set the url of a page that explains the due date policy of your bills, if you have any.

default value: ''

Create settings object

juntagrico-billing uses a singleton Settings object to store some setting. You need to create this settings object once in django admin.

  • Log in to juntagrico and go to the admin UI at https://<my juntagrico site>/admin.

  • You should see in admin a new section for juntagrico_billing grafik

  • Add a new Settings object

    grafik

  • You need to specify a debtors account, just specify any digit code (e.g. 1100)

  • A default paymenttype is mandatory too. You may create one directly from the settings dialog: grafik

  • Save your settings object. There must be only one settings object.

Create a business year

Billing is done on the base of a business-year. A business-year denotes the time period for creating bills. Usually this will correspond to a calendar year (1.1 - 31.1 of a year). It is possible to use different timespans though. Business-years should be consecutive.

Business years are managed in django admin UI.

  • Log in to /admin and create a new businessyear object grafik

Billing

Billing is based on the activation and deactivation dates of subscriptions (and extrasubscriptions) in juntagrico. At any time you may create all needed invoices (bills) for a certain business-year.

In juntagrico you should see the Bills and Bookkeeping Menu, if you are assigned bookkeeping rights.

Go to Bills and choose the desired business-year. Switch to the Generate bills tab. The amount of pending bills for the businessyear should then be displayed. This may take some time depending on the number of subscriptions and members in your system. grafik

Pressing the Generate button will create these bills. They may be viewed afterwards on the all tab of the bills list. grafik

Modifying or adding bills

There are two modes to view an existing bill object:

  • admin view of the bill. click on the first column of a bill row to open the bill in django admin.
  • user view of the bill. click on the last columdn of a bill row to open the bill as the user will see it.

If a bill created via Generate is incorrect, proceed as follows:

  • delete the bill in the django admin UI
  • correct the subscription settings
    • in most cases this will involve adjusting the activation or deactivation date of the subscription / extrasubscription
  • re-create the bill by going to the Generate bills tab on the Bills list.
    • if you only modified one subscription, it should say 1 pending bill
    • click on Generate to re-create the bill based on the modified settings

The same procedure applies if a new subscription or subscription part (extrasubscription) is added after bills for a business-year have been generated. If there already is a bill for the same member and you want the additional parts to appear on the same bill, you may delete the existing bill and regenerate it like described above. Deleting a bill is only possible if there are no payments on it. If you add parts without deleting an existing bill, then a new bill will be added for the member.

Adding custom items to a bill

In addition to subscription and extrasubscription parts, a bill may also contain custom items. Custom items may be used for stuff like

  • correcting overpaid bills
  • adding special credit for a certain member (work instead of paying)
  • adding additional contributions (solidarity contributions)

For each kind of custom item you need to define a custom Bill item type in django admin: grafik

You need to specify a description and a booking account for the custom item type.

You may then add custom item types on a bill in the django admin view of the bill: grafik

Bookkeeping Export

TBD

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

juntagrico_billing-1.6.2.tar.gz (53.0 kB view details)

Uploaded Source

Built Distribution

juntagrico_billing-1.6.2-py3-none-any.whl (68.3 kB view details)

Uploaded Python 3

File details

Details for the file juntagrico_billing-1.6.2.tar.gz.

File metadata

  • Download URL: juntagrico_billing-1.6.2.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for juntagrico_billing-1.6.2.tar.gz
Algorithm Hash digest
SHA256 172ae0f34adafe0d11ade17654ded5ec5065891b6c629f6176dc9383be180123
MD5 f50ac6aad030c30243c1f96200a430d4
BLAKE2b-256 4d6b6f008610ab7dea9e5a5b8f953cb851ba8b68a1e01e727319866422da4064

See more details on using hashes here.

File details

Details for the file juntagrico_billing-1.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for juntagrico_billing-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c10f6aa77cd9eafdeb86ab3346a82fa8018d345af23aec877b8bd874bb50367
MD5 e330b74119913d7ba4056c45c5a149f9
BLAKE2b-256 0ec509ca9093d134ac38a9c016c6ac5a4c3c2d6e32b2d4f46190b087d0091193

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