Skip to content

[Feature]: Block sales below wholesale price or require manager approval #3214

Open

Description

@CMR237

Background information

IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.

Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:

  • [] Reporting an issue of an unmodified OSPOS installation
  • [] Checked open and closed issues and no similar issue was already reported (please make sure you searched!)
  • [] Read README, WHATS_NEW, INSTALL.md and UPGRADE
  • [] Read the FAQ for any known install and/or upgrade gotchas (in specific PHP extensions installed)
  • [] Read the wiki
  • [] Executed any database upgrade scripts if an upgrade pre 3.0.0 (e.g. database/2.4_to_3.0.sql)
  • [] Aware the installation code is in bintray (see README), and GitHub master is for developers only and therefore not complete nor stable

Installation information

  • OSPOS version is: 3.3.4
  • OSPOS git commit hash is: 392d92
  • PHP version is: 7.3.26
  • MySQL or MariaDB version is: 5.5.5
  • OS and version is: windows10
  • WebServer is: xampp
  • Selected language is: fr
  • (If applicable) Docker installation:
  • (If applicable) Installation package for the LAMP/LEMP stack is:

Issue / Bug / Question / New Feature

Please write your issue here. If a bug, please make sure to provide as much information as possible including configuration settings (e.g. Decimals set, Tax mode), language and steps to reproduce the bug.
//////////////////////////////////////////////

hello to you and Thank you for this wonderful program its helps us a lot and since we started using it we have encountered a problem and I hope to find a resolution here. we would like as a product to have a wholesale price and a retail price. we would like us to never sell a product below its wholesale price. can someone help us STP this is urgent. We have encountered after-sales situations that the cashier can change the price or make reductions, often going below the purchase price, which is the retail price.

Activity

  1. CMR237 commented on Jun 16, 2021

    @CMR237
    Author

    someone knows how to solve this problem please we have already been working for more than a year with ospos and it is now that we see that most often the cashier sold products with negative margins and even we even by inattention we noticed that if someone even enters 10 € or even 1 € while the item costs 56 € and we have the wholesale price as 58 € and the retail price at 65 € its valid and we no longer want its. we want that if we enter a product price (-58 €) for example which is the wholesale price that its send us a message "price of the article not good" but if it is above 65 € as in the For example, he did not deny any problem that his validating the transaction. Please we really need help

  2. jekkos commented on Jun 17, 2021

    @jekkos
    Member

    Hi for now a quick fix is to disallow a user to change price. go to employees and untick the box for the cashier.

  3. CMR237 commented on Jun 18, 2021

    @CMR237
    Author

    hello thank you already for your suggestion yes I understand you but the problem is that our mode of operation is a little complicated our customers sometimes like to offer a price on an item and to face the competition seen that we know our margin we accept if we find the price reasonable. and if the price remains on file the cashier will have trouble entering this price. I even blocked to allow him to only make reductions but even on this side the reductions von sometimes up to 100% and his always made negative margins. not to mention that he complains of taking a long time either to assess the percentage of reduction to be made on the price which is there to reach the price given by the customer or to try to make a reduction to enter the price to be removed from the price existing product. we need the wholesale price and the retail price to help the cashier to accept a price that the customer gives in that range or more but never less. but it often happens that he enters a sum much lower than this interval and validates the transaction. and we find that the best if possible is to block the sale of items below the wholesale price, we know that we will no longer have this kind of inconvenience

  4. CMR237 commented on Jun 18, 2021

    @CMR237
    Author

    seeing that its really important to us we are ready to really get along with someone so that it gives us a hand since we do not want to change software we love it and we have been using it for more than 'one years old and we want to solve it as soon as possible thanks in advance

  5. molomixx commented on Jun 18, 2021

    @molomixx

    buen punto con este problema... tiene razon debe ver una validacion para ese tipo de problema, tambien acoto cuando hay devoluciones de productos vendidos o comprados es engorroso ya que solo deberias ingresar la operacion a devolver y deberia obtener los productos a detalle a devolver y no ingresarlo uno a uno eso generaria errores si no es detallista o no se tiene el ticket de venta o compra

  6. CMR237 commented on Jun 20, 2021

    @CMR237
    Author

    hello there is really no one here to help me orient me. and i have yet another problem not allowing the sale of 3n products out of stock

  7. ekardian commented on Jun 21, 2021

    @ekardian
    Contributor

    hello there is really no one here to help me orient me. and i have yet another problem not allowing the sale of 3n products out of stock

    wait , the devs are maybe bussy, but good point

  8. CMR237 commented on Jun 21, 2021

    @CMR237
    Author

    oui merci je reste en attente ... j'imagine qu'ils sont vraiment occupés. c'est deux modifications vont nous sauver la Vie et j'imagine pleins d'autres.

  9. CMR237 commented on Jun 22, 2021

    @CMR237
    Author

    good evening everyone, I'm really stuck with my problem, is there really no way someone can help me? even if it's 3n m3 saying what to do and in which file to intervene or telling me what to pay for these modifications. because we have stopped everything since we want to solve this problem before restarting the sale or really choose another but its would be complicated since it is necessary to start all over imported products etc. please i need help

  10. odiea commented on Jun 22, 2021

    @odiea
    Collaborator

    Train or replace your cashiers.

  11. CMR237 commented on Jun 24, 2021

    @CMR237
    Author

    good evening everyone, I'm really stuck with my problem, is there really no way someone can help me? even if it's en me saying what to do and in which file to intervene or telling me what to pay for these modifications. because we have stopped everything since we want to solve this problem before restarting the sale or really choose another but its would be complicated since it is necessary to start all over imported products etc. please i need help

  12. CMR237 commented on Jun 24, 2021

    @CMR237
    Author

    Hello @Odie @jekkos @objecttothis I understand but we always say that we do not trust a user we lock everything possible at the code level. We have already told them how to operate but as the error is human we therefore do how we ourselves we had to make this type of error. reason why we want blocked to be sure. I don't know what are the implications of my request on this project because I would like some explanation and if it is possible since we are keen on these changes. than allowing people to make mistakes the better it is blocked and everyone is safe. we are ready have discussed with people ready to help us. since we have been using more applications for two weeks now

  13. jekkos commented on Jun 25, 2021

    @jekkos
    Member

    This last commit has a patch that would disallow selling negative stock.. The price rule is a bit more work to implement alas.

  14. 41 remaining items

  15. self-assigned this
    on Sep 9, 2021
  16. added this to the 4.0.0 milestone on Sep 9, 2021
  17. CoinBR commented on Mar 18, 2022

    @CoinBR

    Hello there. New to OpensourcePOS.

    I blocked a user from changing the price, but he still can change the discount as much as he wanted. Is there a way to block that?

    We're trying to make a promotion like, if you buy 12 units of an item, you get a discount. But we don't want the cashiers giving more discounts than we already pre-determined.

    I had the idea of not doing discounts at all, and checked on the reports if any cashier has given any discounts. So, we would need to use the "Kits" feature to provide the discount.
    But I had no success with that, since the cashier can delete the "Kit Item" (the one which contains the price for the package), and just leave the 12 units as $ 0,00.

  18. objecttothis commented on Mar 18, 2022

    @objecttothis
    Member

    Currently there is no feature but it has been requested. We need it in our operation so I will eventually implement it, but if someone needs it sooner, they can submit a pull request with the feature. It needs to be optional (with a default of disabled). It also needs to be able to be overridden and set as a per-employee permission level.

  19. CoinBR commented on Mar 18, 2022

    @CoinBR

    @objecttothis

    Just to confirm, are you talking about a feature to prevent users to change the discount?

  20. objecttothis commented on Mar 18, 2022

    @objecttothis
    Member

    @objecttothis

    Just to confirm, are you talking about a feature to prevent users to change the discount?

    Sorry about the confusion. Yes, this issue and changing the discount amount could be made a part of the same feature set. They both would use the same permissions (grants), settings and override modal.

  21. CoinBR commented on Mar 18, 2022

    @CoinBR

    That's great @objecttothis !

    Do you have an idea about when this is going to be released?
    No worries, I'm not pushing for it, just trying to get an idea

  22. CoinBR commented on Mar 18, 2022

    @CoinBR

    Disclaimer: I barely touched PHP and the only thing I know about CodeIgniter is that it is a framework.
    Not sure if here is the place to ask those questions (sorry if it is not)


    Looking at the code, I got the impression that the $price_change permission is not taken under consideration when edit_item is called on the controller.

    I got the impression that this permission just determines if the value would be editable or not under the register view.
    If so, would a user be able to change the price without this permission, if he hacks the request?

    I'm going around the code, so I may give it a try, and implement for discount the same block we have for price changes. But first, I'm trying to make sure I understand what I have to cover.

  23. CoinBR commented on Mar 18, 2022

    @CoinBR

    Sorry, but I just realized that the user would still be able to change the quantity.

    So, he would add a KIT, that would just add 12 units of something, with a discount (per unit)

    but he would be able the change the quantity do 1, and keep that discount.

    Maybe I'm approaching this whole thing in the wrong way?

    Is there a better way to achieve what I need?

    • If you buy some units of an item, you would pay regular price
    • If you buy a package (with 12 items), you would buy it with a discount
    • The cashier cannot hack it (I mean, sell only 1 unit, and give a discount to it)
  24. websitekenya commented on Mar 24, 2022

    @websitekenya
  25. peckinz commented on Mar 1, 2025

    @peckinz

    how do i sell both wholesale and retail

  26. changed the title [-]block the sale of items below the wholesale price or require manager approval[/-] [+][Feature]: Block sales below wholesale price or require manager approval[/+] on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions