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

Add models for storing buyers and sellers #12

Open
mimmon opened this issue Jun 24, 2019 · 1 comment
Open

Add models for storing buyers and sellers #12

mimmon opened this issue Jun 24, 2019 · 1 comment

Comments

@mimmon
Copy link
Contributor

mimmon commented Jun 24, 2019

If multiple invoices for the same buyer are issued, it will be handy to have them stored in the database.
The same is true for seller which will most probably will usually be the only one.
These models can be separate and inherited from common abstract InvoiceUserModel, but this can be discussed (we can only use a single model)

@ricco386
Copy link
Owner

Yes this is true to a certain point. Both buyer and seller cound change the data and the old invoices have to stay the same... For example if the buyer moves he would have different address and only new invoices should be amended.

Currently we have the duplicate function so it also creates an invoice with the details so there is less work.

We can achieve this behaviour in DB as well.

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