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

Make a selection of the default price type in the PriceTypes controller #424

Open
dblackCat opened this issue Dec 7, 2022 · 0 comments
Open

Comments

@dblackCat
Copy link

Now the basic price mechanism is working fine.

But with all kinds of imports from accounting systems, problems arise.

For example, in 1c system, the import file with price types in the data structure does not contain any marks about what the default price should be.

Because of this, we have to come up with various ways to get around this problem. For example, creating a settings model with a field for the association of the default price type or expanding the price type model with the addition of the is_default property to it.

I encounter this problem very often. Here is a list of accounting systems in which I have observed this problem.

  1. The entire line of 1c accounting systems
  2. Orderhive
  3. Third-party software downloads from various self-written systems. Or specialized software for parsing and packaging data.

Since the price storage mechanism in the current version of shopaholic is the same for the default price and custom price types. I propose to do the following:

  1. Add the ability to assign any type of price - as the default price.
  2. Add a seeder for price types, where the default price type will be added after migrations.
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

1 participant