mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
removing default_currency in fields
This commit is contained in:
parent
e2278fc261
commit
fcdefc4f83
@ -745,7 +745,6 @@ class PriceBreak(models.Model):
|
|||||||
price = InvenTree.fields.InvenTreeModelMoneyField(
|
price = InvenTree.fields.InvenTreeModelMoneyField(
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
decimal_places=4,
|
decimal_places=4,
|
||||||
default_currency=common.settings.currency_code_default,
|
|
||||||
null=True,
|
null=True,
|
||||||
verbose_name=_('Price'),
|
verbose_name=_('Price'),
|
||||||
help_text=_('Unit price at specified quantity'),
|
help_text=_('Unit price at specified quantity'),
|
||||||
|
@ -130,7 +130,6 @@ class EditSupplierPartForm(HelperForm):
|
|||||||
|
|
||||||
single_pricing = InvenTreeMoneyField(
|
single_pricing = InvenTreeMoneyField(
|
||||||
label=_('Single Price'),
|
label=_('Single Price'),
|
||||||
default_currency=currency_code_default(),
|
|
||||||
help_text=_('Single quantity price'),
|
help_text=_('Single quantity price'),
|
||||||
decimal_places=4,
|
decimal_places=4,
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
|
@ -321,7 +321,6 @@ class OrderMatchItemForm(MatchItemForm):
|
|||||||
elif 'price' in col_guess.lower():
|
elif 'price' in col_guess.lower():
|
||||||
return InvenTreeMoneyField(
|
return InvenTreeMoneyField(
|
||||||
label=_(col_guess),
|
label=_(col_guess),
|
||||||
default_currency=InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY'),
|
|
||||||
decimal_places=5,
|
decimal_places=5,
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
required=False,
|
required=False,
|
||||||
|
@ -665,7 +665,6 @@ class PurchaseOrderLineItem(OrderLineItem):
|
|||||||
purchase_price = InvenTreeModelMoneyField(
|
purchase_price = InvenTreeModelMoneyField(
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
decimal_places=4,
|
decimal_places=4,
|
||||||
default_currency=currency_code_default(),
|
|
||||||
null=True, blank=True,
|
null=True, blank=True,
|
||||||
verbose_name=_('Purchase Price'),
|
verbose_name=_('Purchase Price'),
|
||||||
help_text=_('Unit purchase price'),
|
help_text=_('Unit purchase price'),
|
||||||
@ -717,7 +716,6 @@ class SalesOrderLineItem(OrderLineItem):
|
|||||||
sale_price = InvenTreeModelMoneyField(
|
sale_price = InvenTreeModelMoneyField(
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
decimal_places=4,
|
decimal_places=4,
|
||||||
default_currency=currency_code_default(),
|
|
||||||
null=True, blank=True,
|
null=True, blank=True,
|
||||||
verbose_name=_('Sale Price'),
|
verbose_name=_('Sale Price'),
|
||||||
help_text=_('Unit sale price'),
|
help_text=_('Unit sale price'),
|
||||||
|
@ -534,7 +534,6 @@ class StockItem(MPTTModel):
|
|||||||
purchase_price = InvenTreeModelMoneyField(
|
purchase_price = InvenTreeModelMoneyField(
|
||||||
max_digits=19,
|
max_digits=19,
|
||||||
decimal_places=4,
|
decimal_places=4,
|
||||||
default_currency=currency_code_default(),
|
|
||||||
blank=True,
|
blank=True,
|
||||||
null=True,
|
null=True,
|
||||||
verbose_name=_('Purchase Price'),
|
verbose_name=_('Purchase Price'),
|
||||||
|
Loading…
Reference in New Issue
Block a user