Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Price Feature (backend) #169

Open
sheenazien8 opened this issue Apr 16, 2024 · 0 comments
Open

Unit Price Feature (backend) #169

sheenazien8 opened this issue Apr 16, 2024 · 0 comments
Assignees

Comments

@sheenazien8
Copy link
Member

sheenazien8 commented Apr 16, 2024

We need API to handle this feature

Issues

Sometimes merchants need to sell products that are not only 1 unit, but sometimes they are using each unit with different prices, e.g.:
The basic unit of the product is PCS, and the price is IDR 1000; then they want to sell this product at a different price if the customer buys it per 10 PCS (box), so the merchant needs to set the price like this:

Product A needs to have unit BOX that contains 10 PCS with prices IDR 8000

How can we solve this issue?

IMO, we need to add a unit_prices table that relates to the product with columns:

  • unit (String)
  • contains (Int)
  • price (Double)

Then, when the product is sold by using the unit price, we need to add the flag to know whether this is using the feature or not; then, in table transactions, we need to use this price as well, and we can discuss it to have the better solution for this feature

@sheenazien8 sheenazien8 self-assigned this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready To Develop
Development

No branches or pull requests

1 participant