Giter Site home page Giter Site logo

django-faktura's People

Contributors

mimmon avatar ricco386 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-faktura's Issues

Add models for storing buyers and sellers

If multiple invoices for the same buyer are issued, it will be handy to have them stored in the database.
The same is true for seller which will most probably will usually be the only one.
These models can be separate and inherited from common abstract InvoiceUserModel, but this can be discussed (we can only use a single model)

Add download counter

Add counter that will log who has downloaded the invoice and how many times the invoice has been downloaded.

Add ability to do simple accounting

Add ability to use the app for simple accounting:

  • Different type of accounting books (like money diary)
  • Each book should support transactions (income and costs)
  • Ability to upload document (proof) for each transaction

Admin add action for generating invoice from proforma

Admin has dropdown actions, add new one for generating invoice (in DRAFT state) from existing pro forma invoice.

Make sure if action is called on other type than pro forma invoice nothing will happen (or message will be shown).

Add permissions

Add permission:

  • can_make_as_final_document

So far we do not have frontend for creating and editing invoices, but we can be prepared with permissions when we are creating them... Pre generate groups with "all" invoicing permissions and "view" invoicing permissions. Look at the admin interface if the groups can be used there as well...

AttributeError at /invoices/<id_invoice>/download/

After click on download PDF i've received

`

Request Method: GET
http://127.0.0.1:8000/invoices/1786f85d-47d9-4a08-8852-3104227ba7bb/download/
3.1
AttributeError
'NoneType' object has no attribute 'endswith'
/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/utils.py, line 296, in make_absolute_paths
/home/m/Desktop/localhost/django-tt/venv/bin/python3
3.8.2
['/home/m/Desktop/localhost/django-tt/project', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages']
Thu, 27 Aug 2020 12:11:58 +0000
`


Request Method: GET
Request URL: http://127.0.0.1:8000/invoices/1786f85d-47d9-4a08-8852-3104227ba7bb/download/

Django Version: 3.1
Python Version: 3.8.2
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'faktura']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 202, in _get_response
    response = response.render()
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/django/template/response.py", line 105, in render
    self.content = self.rendered_content
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/views.py", line 73, in rendered_content
    return render_pdf_from_template(
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/utils.py", line 201, in render_pdf_from_template
    input_file = RenderedFile(
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/utils.py", line 178, in __init__
    self.temporary_file = render_to_temporary_file(
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/utils.py", line 331, in render_to_temporary_file
    content = make_absolute_paths(content)
  File "/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/utils.py", line 296, in make_absolute_paths
    if not x['root'].endswith('/'):

Exception Type: AttributeError at /invoices/1786f85d-47d9-4a08-8852-3104227ba7bb/download/
Exception Value: 'NoneType' object has no attribute 'endswith'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.