Giter VIP home page Giter VIP logo

Comments (6)

k-pd avatar k-pd commented on May 13, 2024

A well-known feature in many shops: Sell product if not on stock. Can be a bool value in product table.

Also a well-known feature using a bool value in product table: send eMail if product out of stock.

from foodcoopshop.

mrothauer avatar mrothauer commented on May 13, 2024

1) sell product if not on stock

i recommend using the existing column "Anzahl" for that and allow it to be negative, if the new option "sell product if not on stock" mentioned by @k-pd is set to true.

adding a checkbox "Allow further orders if quantity is set to 0" in the overlay where the "Anzahl" can be changed (Admin / Produkte). Maybe also add a maximum negative quantity (eg. -10). default to infinitive?

there are a some manufacturers that only have stock products. a new manufacturer option should define the default value for the new option for all products of a specific manufacturer. so new products do not need to be changed and adding the new option can not be forgotten.

todos

  • CartsController (including CartsControllerTest, write new Test for the new option!)
  • New migration for field in table product "sellProductIfNotOnStock", eventually remove unsigned flag from table StockAvailable.quantity - can be negative
  • Add new flag in amount overlay
  • Add manufacturer option (saved as json - no migration needed)
  • Add default value in database configuration

2) send email if product out of stock

after implementing 1) it should be relatively simple to trigger an email to the manufacturer if the quantity is 0 (in CartsController)

from foodcoopshop.

k-pd avatar k-pd commented on May 13, 2024

At 2): Do not test for 0, must be first time quantity becomes <= 0.

from foodcoopshop.

gueterwege avatar gueterwege commented on May 13, 2024

Hi sorry, i was on holiday. all very very good

versteh ich nicht: "there are a some manufacturers that only have stock products. a new manufacturer option should define the default value for the new option for all products of a specific manufacturer. so new products do not need to be changed and adding the new option can not be forgotten"

from foodcoopshop.

mrothauer avatar mrothauer commented on May 13, 2024

Manche Hersteller haben nur Lagerprodukte. Es sollte also für Hersteller eine neue Option "ich bin ein Lagerprodukt-Hersteller" geben. Diese neue Option legt für neue Produkte dieses Herstellers automatisch fest, dass das neue Produkt die Einstellung "Produkt bestellbar, wenn nicht auf Lager" bekommt. Wie beim dem Standard-Steuersatz, der dem Hersteller zugewiesen werden kann, der dann auch genau diese Einstellung auf neue Produkte dieses Herstellers übernimmt. So kann das bei neuen Produkten nicht vergessen werden.

from foodcoopshop.

SaibotP avatar SaibotP commented on May 13, 2024

Finde ich auch sehr wichtig. Diese Option haben wir (RIADAREI.at) auch schon vermisst. Meine Ergänzung dazu: Man sollte auch einstellen können, ab welchem Lagerbestand man ein Erinnerungsmail bekommt. Das ist in solchen Systemen/Shops üblich und sinnvoll (<0, 0, 3, 5, 10 etc.). Das kann je nach Produkt sehr unterschiedlich sinnvoll sein.

Danke und Liebe Grüße,

Tobias

from foodcoopshop.

Related Issues (20)

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.