Coder Social home page Coder Social logo

flask-inventory's People

Contributors

cisko3000 avatar paris3200 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flask-inventory's Issues

Project restructuring

Hi,
I'd like to rename the 'project' folder to 'app' and also have all the templates in the template folder, instead of inventory and main having their own template folders.

What do you feel about this? I think it would be more organized. Because right now even main folder doesn't have its own templates, they are in the actual templates folder.

Let me know, I want to make this change and then do pull-request.

Purchase Order

The purchase order view isn't showing components. Most likely due to the database being changed.

Feature Planning

@cisko3000

I'd like to get some input from you on what you've got planned. I stopped work on flask-inventory a year ago, but if you're interested in it I would love to pick it back up again. I want to be sure that we're on the same page as to what needs to be done and that we're working towards the same goals.

Thanks,

Jason Paris

Purchase Order SKU

I believe we need to upgrade the logic for purchase orders. The purchase order SKU needs to be the SKU that the vendor uses not necessarily the SKU in the app. It is possible that a single component can be sourced from different vendors all using different SKUs.

I believe the solution is to separate the ordered items from the components by placing them into a separate database table and tieing them to a vendor. It might look something like:

po_items

  • id
  • sku
  • description
  • vendor_id

Any thoughts?

Manage Tags View

Testing is needed for the manage tags view.

@cisko3000
Would you mind writing a test fo this?

PS: I had a chance to take a look at the API. That is going to be very handy.

Error during the installation

Hi,
when I am trying to run the setup.h i am receiving the following error message:

Debugged import:

  • '"project' not found.

Original exception:

ImportStringError: import_string() failed for '"project'. Possible reasons are:

  • missing init.py in a package;
  • package or module path not included in sys.path;
  • duplicated package or module name taking precedence in sys.path;
  • missing module, class, function or variable;

Debugged import:

Jinja2 code in static JS file causes javascript syntax error

There's this url_for() function in static file 'main.js', it causes invalid syntax JavaScript error in console.

// custom javascript
$(document).ready(function() {
    $.ajax({
        url: '{{ url_for("vendor.search") }}'
    }).done(function (data) {
        $('input').autocomplete({
            source: data,
            minLength: 2
        });
    });
}

Possible solution is declaring SCRIPT_ROOT variable in base template
<script>$SCRIPT_ROOT = {{ request.script_root|tojson|safe }}; </script>
Then one can use $SCRIPT_ROOT in static js files to know the root URL and hard-code rest of route.
This is what I always do in my projects.

Any other suggestions?

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.