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

StoreStock and Pricing #157

Open
farooqaaa opened this issue Nov 15, 2020 · 1 comment
Open

StoreStock and Pricing #157

farooqaaa opened this issue Nov 15, 2020 · 1 comment

Comments

@farooqaaa
Copy link

farooqaaa commented Nov 15, 2020

Why doesn't the StoreStock model have a price field? Is it left out intentionally?

Also, I think it would be a good idea to extend Oscar's StockRecord model. The only downside would be that the field name has to be partner even though it'll be referring to a Store. Something like this:

class StoreStock(AbstractStockRecord):
    partner = models.ForeignKey('stores.Store', ...)
@solarissmoke
Copy link
Member

Why doesn't the StoreStock model have a price field? Is it left out intentionally?

Yes - this isn't really intended to be a full stock management system for a store. StoreStock is intended just to keep track of whether an item is available at a given store - so that you could, for example, show customers the nearest store where it is available. I think attaching in-store pricing to this is beyond the scope of this package (although you could extend it to do something like that if you wanted to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants