ricco386 / django-faktura

Simple django app for invoice generation.
MIT License
12 stars 6 forks source link

Add models for storing buyers and sellers #12

Open mimmon opened 5 years ago

mimmon commented 5 years ago

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 commented 5 years ago

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.