BIG-23|BIG-24: fix add missing hint on selling/cost account on item form.

This commit is contained in:
a.bouhuolia
2021-09-12 10:20:59 +02:00
parent 129b73c363
commit 9045cffb7f
5 changed files with 26 additions and 15 deletions

View File

@@ -1,8 +1,7 @@
import React from 'react';
import { FormattedMessage as T } from 'components';
import intl from 'react-intl-universal';
import { Tooltip, Button, Checkbox, Intent, Position } from '@blueprintjs/core';
import { Hint, Icon } from 'components';
import { Tooltip, Button, Intent, Position } from '@blueprintjs/core';
import { Hint, Icon, FormattedMessage as T } from 'components';
import { formattedAmount, safeSumBy } from 'utils';
import {
InputGroupCell,
@@ -20,7 +19,10 @@ export function ItemHeaderCell() {
return (
<>
<T id={'product_and_service'} />
<Hint />
<Hint
content={<T id={'item_entries.products_services.hint'} />}
tooltipProps={{ boundary: 'window', position: Position.RIGHT }}
/>
</>
);
}
@@ -98,11 +100,7 @@ const LandedCostHeaderCell = () => {
return (
<>
<T id={'Landed'} />
<Hint
content={
'This options allows you to be able to add additional cost eg. freight then allocate cost to the items in your bills.'
}
/>
<Hint content={<T id={'item_entries.landed.hint'} />} />
</>
);
};

View File

@@ -100,7 +100,9 @@ function ItemFormBody({ organization: { base_currency } }) {
{({ form, field: { value }, meta: { error, touched } }) => (
<FormGroup
label={<T id={'account'} />}
labelInfo={<Hint />}
labelInfo={
<Hint content={<T id={'item.field.sell_account.hint'} />} />
}
inline={true}
intent={inputIntent({ error, touched })}
helperText={<ErrorMessage name="sell_account_id" />}
@@ -206,7 +208,9 @@ function ItemFormBody({ organization: { base_currency } }) {
{({ form, field: { value }, meta: { error, touched } }) => (
<FormGroup
label={<T id={'account'} />}
labelInfo={<Hint />}
labelInfo={
<Hint content={<T id={'item.field.cost_account.hint'} />} />
}
inline={true}
intent={inputIntent({ error, touched })}
helperText={<ErrorMessage name="cost_account_id" />}