Giter Club home page Giter Club logo

small-business-fridge's People

Contributors

dependabot[bot] avatar megastary avatar snyk-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

small-business-fridge's Issues

[BUG] ReferenceError: Product is not defined when clicking on "Stav skladu"

Describe the bug
ReferenceError: Product is not defined when clicking on "Stav skladu"

To Reproduce
Steps to reproduce the behavior:

  1. Log in
  2. Open the menu on the top right
  3. Click on "Stavu skladu"
  4. See error
Product is not defined
ReferenceError: Product is not defined
    at file:///usr/src/app/routes/stock.js:13:3
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/src/app/node_modules/express/lib/router/route.js:144:13)
    at ensureAuthenticated (file:///usr/src/app/functions/ensureAuthenticated.js:5:12)
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/src/app/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
    at /usr/src/app/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12)

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11 21H2
  • Browser: Brave
  • Version: 1.59.117

[REQUEST] Please update lednice to 2.0 now

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Missing basic bootstrap values

Website is too small on smaller devices, because default layout is missing some basic tags. Fix by adding at least those:

[REQUEST] Simplify dead end responses

In parts of code where we check for exaploe for authorization, we currently respond with
res.status(403).send()
return

This can be simplified to
res.status(403).end()

The only problem may be, that end() does not set headers for different response types, it is always text.

[REQUEST] Add database backup tool

Is your feature request related to a problem? Please describe.
You know, everyone should do backups, in case any problem happens.

Describe the solution you'd like

  1. Allow automated backups with deletes of old ones
  2. Allow manual backup from Administration Dashboard

Bulk save tries to oveerwrite single invoice record

/path/.pm2/logs/www-error.log last 15 lines:
0|www | at model.Model.save (/path/lednice/node_modules/mongoose/lib/model.js:439:20)
0|www | at /path/lednice/routes/invoice.js:210:28
0|www | at result (/path/lednice/node_modules/mongoose/node_modules/mongodb/lib/utils.js:410:17)
0|www | at session.endSession (/path/lednice/node_modules/mongoose/node_modules/mongodb/lib/utils.js:398:11)
0|www | at ClientSession.endSession (/path/lednice/node_modules/mongodb-core/lib/sessions.js:134:41)
0|www | at executeCallback (/path/lednice/node_modules/mongoose/node_modules/mongodb/lib/utils.js:395:17)
0|www | at handleCallback (/path/lednice/node_modules/mongoose/node_modules/mongodb/lib/utils.js:128:55)
0|www | at executeCommands (/path/lednice/node_modules/mongoose/node_modules/mongodb/lib/bulk/common.js:477:12)
0|www | at resultHandler (/path/lednice/node_modules/mongoose/node_modules/mongodb/lib/bulk/common.js:504:5)
0|www | at handler (/path/lednice/node_modules/mongodb-core/lib/topologies/replset.js:1155:22)
0|www | at /path/lednice/node_modules/mongodb-core/lib/connection/pool.js:397:18
0|www | at _combinedTickCallback (internal/process/next_tick.js:131:7)
0|www | at process._tickCallback (internal/process/next_tick.js:180:9)
0|www | message: 'Can't save() the same doc multiple times in parallel. Document: 5db80f1e4755b453e250ff8f',
0|www | name: 'ParallelSaveError' }

[REQUEST] TODO

  • Add new product page - for admins
  • Add customize product page - for admins
  • Add modify keypadID page - for supplier
  • Add delivieries overview - for supplier (stock page rework?)
  • Add send newsletter for suppliers?
  • Add/fix tooltip in invoice page
  • Add automatic reminder for users who did not pay invoice in week?
  • AAD login handle name/email change?
  • Remove changelog / show only recent important change.
  • Let supplier resend invoices
  • Let user display payment info / resend e-mail from e-shop
  • Change stock view for kiosk page as well
  • Let admin change users permissions
  • Let admin disable account - to be anonymized and excluded from e-mails and reports
  • Make e-mail buttons context aware
  • Add more themes
  • Add AI generation for product description

[BUG] User account without e-mail cannot Register

Describe the bug
Azure account without e-mail address cannot login, because upon registration e-mail attribute is required in mongoose User model.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any page
  2. Click on Login
  3. Login with Azure account without e-mail
  4. Get endlessly bumped back to login page

Expected behavior
Kindly tell user to use account with e-mail address.

Desktop (please complete the following information):

  • OS: Any

[BUG] SYSTEM e-mails probably not working

Describe the bug
We have tried many ways to trigger alert when trying to manipulate invoices we do not own, yet no e-mail arrived.

To Reproduce
Steps to reproduce the behavior:

  1. Go to /invoices
  2. Click on Developer console, edit invoice ID
  3. Click "Zaplaceno"
  4. See error and no e-mail arrives

Expected behavior
Expect to receive e-mail

[REQUEST] Allergens tags

User story:
Kdyby šel ke každé položce přidat nějaký tag kvůli alergenům a pak na to filtrovat, bylo by to boží. Reálně využití pro zdravého člověka 0, pro potravinového invalidu "must have"

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.