1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Billing -> Invoice

This commit is contained in:
Yohann D'ANELLO
2020-03-22 01:22:27 +01:00
parent 18f6daf2ac
commit 4f343fc99f
12 changed files with 333 additions and 251 deletions

View File

@ -5,10 +5,10 @@ from django.db import models
from django.utils.translation import gettext_lazy as _
class Billing(models.Model):
class Invoice(models.Model):
id = models.PositiveIntegerField(
primary_key=True,
verbose_name=_("Billing identifier"),
verbose_name=_("Invoice identifier"),
)
bde = models.CharField(
@ -104,8 +104,8 @@ class Billing(models.Model):
class Product(models.Model):
billing = models.ForeignKey(
Billing,
invoice = models.ForeignKey(
Invoice,
on_delete=models.PROTECT,
)