mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
Fix: translate item form fields
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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})',
|
||||
|
||||
Reference in New Issue
Block a user