mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
BIG-23|BIG-24: fix add missing hint on selling/cost account on item form.
This commit is contained in:
@@ -10,11 +10,12 @@ import 'style/components/Hint.scss';
|
|||||||
export default function FieldHint({
|
export default function FieldHint({
|
||||||
content,
|
content,
|
||||||
position,
|
position,
|
||||||
iconSize = 12
|
iconSize = 12,
|
||||||
|
tooltipProps
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<span class="hint">
|
<span class="hint">
|
||||||
<Tooltip content={content} position={position}>
|
<Tooltip content={content} position={position} { ...tooltipProps }>
|
||||||
<Icon icon="info-circle" iconSize={iconSize} />
|
<Icon icon="info-circle" iconSize={iconSize} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormattedMessage as T } from 'components';
|
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { Tooltip, Button, Checkbox, Intent, Position } from '@blueprintjs/core';
|
import { Tooltip, Button, Intent, Position } from '@blueprintjs/core';
|
||||||
import { Hint, Icon } from 'components';
|
import { Hint, Icon, FormattedMessage as T } from 'components';
|
||||||
import { formattedAmount, safeSumBy } from 'utils';
|
import { formattedAmount, safeSumBy } from 'utils';
|
||||||
import {
|
import {
|
||||||
InputGroupCell,
|
InputGroupCell,
|
||||||
@@ -20,7 +19,10 @@ export function ItemHeaderCell() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<T id={'product_and_service'} />
|
<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 (
|
return (
|
||||||
<>
|
<>
|
||||||
<T id={'Landed'} />
|
<T id={'Landed'} />
|
||||||
<Hint
|
<Hint content={<T id={'item_entries.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.'
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -100,7 +100,9 @@ function ItemFormBody({ organization: { base_currency } }) {
|
|||||||
{({ form, field: { value }, meta: { error, touched } }) => (
|
{({ form, field: { value }, meta: { error, touched } }) => (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={<T id={'account'} />}
|
label={<T id={'account'} />}
|
||||||
labelInfo={<Hint />}
|
labelInfo={
|
||||||
|
<Hint content={<T id={'item.field.sell_account.hint'} />} />
|
||||||
|
}
|
||||||
inline={true}
|
inline={true}
|
||||||
intent={inputIntent({ error, touched })}
|
intent={inputIntent({ error, touched })}
|
||||||
helperText={<ErrorMessage name="sell_account_id" />}
|
helperText={<ErrorMessage name="sell_account_id" />}
|
||||||
@@ -206,7 +208,9 @@ function ItemFormBody({ organization: { base_currency } }) {
|
|||||||
{({ form, field: { value }, meta: { error, touched } }) => (
|
{({ form, field: { value }, meta: { error, touched } }) => (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={<T id={'account'} />}
|
label={<T id={'account'} />}
|
||||||
labelInfo={<Hint />}
|
labelInfo={
|
||||||
|
<Hint content={<T id={'item.field.cost_account.hint'} />} />
|
||||||
|
}
|
||||||
inline={true}
|
inline={true}
|
||||||
intent={inputIntent({ error, touched })}
|
intent={inputIntent({ error, touched })}
|
||||||
helperText={<ErrorMessage name="cost_account_id" />}
|
helperText={<ErrorMessage name="cost_account_id" />}
|
||||||
|
|||||||
@@ -1312,6 +1312,10 @@
|
|||||||
"expenses.empty_status.description": "قم بإنشاء وإدارة المصروفات التي تُعد جزء من التكاليف التشغيلية لمؤسستك.",
|
"expenses.empty_status.description": "قم بإنشاء وإدارة المصروفات التي تُعد جزء من التكاليف التشغيلية لمؤسستك.",
|
||||||
"manual_journals.empty_status.title": "قم بإدخال اول القيود اليدوية علي شجرة الحسابات.",
|
"manual_journals.empty_status.title": "قم بإدخال اول القيود اليدوية علي شجرة الحسابات.",
|
||||||
"manual_journals.empty_status.description": "يمكن القيود اليدوية لتسجيل المعاملات المالية ، ويستخدمها المحاسبون للعمل مع دفتر الأستاذ.",
|
"manual_journals.empty_status.description": "يمكن القيود اليدوية لتسجيل المعاملات المالية ، ويستخدمها المحاسبون للعمل مع دفتر الأستاذ.",
|
||||||
"expense.column.multi_categories": "- متعدد التصنيفات -"
|
"expense.column.multi_categories": "- متعدد التصنيفات -",
|
||||||
|
"item.field.cost_account.hint": "أدخل السعر الذي اشتريت به هذا العنصر.",
|
||||||
|
"item.field.sell_account.hint": "أدخل السعر الذي ستبيعه لهذا العنصر.",
|
||||||
|
"item_entries.products_services.hint": "أدخل المنتجات أو الخدمات التي تبيعها أو تشتريها لتتبع ما قمت ببيعه أو شرائه.",
|
||||||
|
"item_entries.landed.hint": "يتيح لك هذه الخيار إمكانية إضافة تكلفة اضافية علي فاتورة الشراء متال علي ذلك تكاليف الشحن ، ثم تحديد هذه التكلفة لتحميلها علي فاتورة الشراء."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1283,5 +1283,9 @@
|
|||||||
"manual_journals.empty_status.title": "Create your first journal entries on accounts chart.",
|
"manual_journals.empty_status.title": "Create your first journal entries on accounts chart.",
|
||||||
"expenses.empty_status.description": "Create and manage expeses that are part of your organization's operating costs.",
|
"expenses.empty_status.description": "Create and manage expeses that are part of your organization's operating costs.",
|
||||||
"expenses.empty_status.title": "Create and manage your organization's expenses",
|
"expenses.empty_status.title": "Create and manage your organization's expenses",
|
||||||
"expense.column.multi_categories": "- Multi Categories -"
|
"expense.column.multi_categories": "- Multi Categories -",
|
||||||
|
"item.field.cost_account.hint": "Enter price at which you purchased this item.",
|
||||||
|
"item.field.sell_account.hint": "Enter price which you goint to sell this item.",
|
||||||
|
"item_entries.products_services.hint": "Enter products or services you sell or buy to keep tracking what your sold or purchased.",
|
||||||
|
"item_entries.landed.hint": "This options allows you to be able to add additional cost eg. freight then allocate cost to the items in your bills."
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user