2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

When creating a new price break for a supplier part, default to using the currency code specified for the supplier company

This commit is contained in:
Oliver Walters
2020-11-12 11:14:50 +11:00
parent 1532be9c1e
commit 51d2d85c26
6 changed files with 100 additions and 8 deletions

View File

@ -464,7 +464,14 @@ class PriceBreak(models.Model):
class Meta:
abstract = True
quantity = InvenTree.fields.RoundingDecimalField(max_digits=15, decimal_places=5, default=1, validators=[MinValueValidator(1)])
quantity = InvenTree.fields.RoundingDecimalField(
max_digits=15,
decimal_places=5,
default=1,
validators=[MinValueValidator(1)],
verbose_name=_('Quantity'),
help_text=_('Price break quantity'),
)
price = MoneyField(
max_digits=19,