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:
@ -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,
|
||||
|
Reference in New Issue
Block a user