diff --git a/client/src/containers/Items/ItemForm.js b/client/src/containers/Items/ItemForm.js index 322df8080..97fd4a492 100644 --- a/client/src/containers/Items/ItemForm.js +++ b/client/src/containers/Items/ItemForm.js @@ -89,12 +89,14 @@ function ItemForm({ sku: Yup.string().trim(), cost_price: Yup.number().when(['purchasable'], { is: true, - then: Yup.number().required(), + then: Yup.number().required() + .label(formatMessage({ id: 'cost_price_' })), otherwise: Yup.number().nullable(true), }), sell_price: Yup.number().when(['sellable'], { is: true, - then: Yup.number().required(), + then: Yup.number().required() + .label(formatMessage({ id: 'sell_price_' })), otherwise: Yup.number().nullable(true), }), cost_account_id: Yup.number() diff --git a/client/src/lang/en/index.js b/client/src/lang/en/index.js index ac1620d2e..3db4b3599 100644 --- a/client/src/lang/en/index.js +++ b/client/src/lang/en/index.js @@ -107,6 +107,8 @@ export default { draft: 'Draft', published: 'Published', new_item: 'New Item', + cost_price_: 'Cost price', + sell_price_: 'Sell price', table_views: 'Table Views', delete: 'Delete', delete_count: 'Delete ({count})',