mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
BIG-23|BIG-24: fix add missing hint on selling/cost account on item form.
This commit is contained in:
@@ -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'} />} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -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" />}
|
||||
|
||||
Reference in New Issue
Block a user