Code Monkey home page Code Monkey logo

beerclub's People

Contributors

firstyear avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tigerwolf

beerclub's Issues

Unit tests

There need to be unit tests, especially around the financially components of the code.

Stocktake should be able to add beers to db during the process

Right now if a beer doesn't exist during a stocktake, because of the way the transaction is opened, you can't add a new beer to the DB and then scan it in as part of the stocktake. So you have to sit it to the side and scan it in a new purchase.

Stocktake should be able to attach a barcode to a beer. The process should be that you scan all the barcodes, and stocktake tells you if a barcode (and quantity) doesn't match a beer. You can then link the barcode to a beer inst, and the stock take works. Else you should be able to create the beer and beerinst then link the barcodes to them.

Error with fix_negative_stock command

django.utils.encoding.DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 38: ordinal not in range(128). You passed in <Stock: [Bad Unicode data]> (<class 'beerclub.models.Stock'>)
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/usr/lib64/python2.7/site-packages/django/utils/decorators.py", line 184, in inner
    return func(*args, **kwargs)
  File "/var/www/django/its_django/beerclub/management/commands/negative_stock_fix.py", line 20, in handle
    print(si)
  File "/usr/lib64/python2.7/site-packages/django/db/models/base.py", line 466, in __str__
    return force_text(self).encode('utf-8')
  File "/usr/lib64/python2.7/site-packages/django/utils/encoding.py", line 88, in force_text
    raise DjangoUnicodeDecodeError(s, *e.args)

The issue appears to be with utf-8 characters. For example - "Saison 4 årstider Høst, HaandBryggerie"

Error on stock page.

'ascii' codec can't decode byte 0xc3 in position 42: ordinal not in range(128). You passed in <Stock: [Bad Unicode data]> (<class 'beerclub.models.Stock'>)

Add history view

We should be able to look at past years legends and stats. Add a history page to be able to show this.

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.