2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 04:00:57 +00:00

adding internal price breaks as in

This commit is contained in:
2021-06-05 17:01:49 +02:00
parent 92f77b6bbb
commit 0d93c96f2a
10 changed files with 264 additions and 5 deletions

@ -1983,6 +1983,21 @@ class PartSellPriceBreak(common.models.PriceBreak):
unique_together = ('part', 'quantity')
class PartInternalPriceBreak(common.models.PriceBreak):
"""
Represents a price break for internally selling this part
"""
part = models.ForeignKey(
Part, on_delete=models.CASCADE,
related_name='internalpricebreaks',
verbose_name=_('Part')
)
class Meta:
unique_together = ('part', 'quantity')
class PartStar(models.Model):
""" A PartStar object creates a relationship between a User and a Part.