forked from DGNum/gestioCOF
Delete unused models
Certains modèles n'étaient pas utilisés dans le code, on en profite pour les virer.
This commit is contained in:
parent
018865967d
commit
3a5eceba83
1 changed files with 0 additions and 20 deletions
|
@ -384,16 +384,6 @@ class Checkout(models.Model):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
class CheckoutTransfer(models.Model):
|
|
||||||
from_checkout = models.ForeignKey(
|
|
||||||
Checkout, on_delete=models.PROTECT, related_name="transfers_from"
|
|
||||||
)
|
|
||||||
to_checkout = models.ForeignKey(
|
|
||||||
Checkout, on_delete=models.PROTECT, related_name="transfers_to"
|
|
||||||
)
|
|
||||||
amount = models.DecimalField(max_digits=6, decimal_places=2)
|
|
||||||
|
|
||||||
|
|
||||||
class CheckoutStatement(models.Model):
|
class CheckoutStatement(models.Model):
|
||||||
by = models.ForeignKey(Account, on_delete=models.PROTECT, related_name="+")
|
by = models.ForeignKey(Account, on_delete=models.PROTECT, related_name="+")
|
||||||
checkout = models.ForeignKey(
|
checkout = models.ForeignKey(
|
||||||
|
@ -526,16 +516,6 @@ class Article(models.Model):
|
||||||
return to_ukf(self.price)
|
return to_ukf(self.price)
|
||||||
|
|
||||||
|
|
||||||
class ArticleRule(models.Model):
|
|
||||||
article_on = models.OneToOneField(
|
|
||||||
Article, on_delete=models.PROTECT, related_name="rule_on"
|
|
||||||
)
|
|
||||||
article_to = models.OneToOneField(
|
|
||||||
Article, on_delete=models.PROTECT, related_name="rule_to"
|
|
||||||
)
|
|
||||||
ratio = models.PositiveSmallIntegerField()
|
|
||||||
|
|
||||||
|
|
||||||
class Inventory(models.Model):
|
class Inventory(models.Model):
|
||||||
articles = models.ManyToManyField(
|
articles = models.ManyToManyField(
|
||||||
Article, through="InventoryArticle", related_name="inventories"
|
Article, through="InventoryArticle", related_name="inventories"
|
||||||
|
|
Loading…
Reference in a new issue