mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 07:40:32 +00:00
Fix: translate item form fields
This commit is contained in:
@@ -89,12 +89,14 @@ function ItemForm({
|
|||||||
sku: Yup.string().trim(),
|
sku: Yup.string().trim(),
|
||||||
cost_price: Yup.number().when(['purchasable'], {
|
cost_price: Yup.number().when(['purchasable'], {
|
||||||
is: true,
|
is: true,
|
||||||
then: Yup.number().required(),
|
then: Yup.number().required()
|
||||||
|
.label(formatMessage({ id: 'cost_price_' })),
|
||||||
otherwise: Yup.number().nullable(true),
|
otherwise: Yup.number().nullable(true),
|
||||||
}),
|
}),
|
||||||
sell_price: Yup.number().when(['sellable'], {
|
sell_price: Yup.number().when(['sellable'], {
|
||||||
is: true,
|
is: true,
|
||||||
then: Yup.number().required(),
|
then: Yup.number().required()
|
||||||
|
.label(formatMessage({ id: 'sell_price_' })),
|
||||||
otherwise: Yup.number().nullable(true),
|
otherwise: Yup.number().nullable(true),
|
||||||
}),
|
}),
|
||||||
cost_account_id: Yup.number()
|
cost_account_id: Yup.number()
|
||||||
|
|||||||
@@ -107,6 +107,8 @@ export default {
|
|||||||
draft: 'Draft',
|
draft: 'Draft',
|
||||||
published: 'Published',
|
published: 'Published',
|
||||||
new_item: 'New Item',
|
new_item: 'New Item',
|
||||||
|
cost_price_: 'Cost price',
|
||||||
|
sell_price_: 'Sell price',
|
||||||
table_views: 'Table Views',
|
table_views: 'Table Views',
|
||||||
delete: 'Delete',
|
delete: 'Delete',
|
||||||
delete_count: 'Delete ({count})',
|
delete_count: 'Delete ({count})',
|
||||||
|
|||||||
Reference in New Issue
Block a user