mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 07:40:32 +00:00
fix: item form money input with new props.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import React, { useCallback, useState } from 'react';
|
import React, { useCallback, useEffect, useState } from 'react';
|
||||||
import { FormattedMessage as T } from 'react-intl';
|
import { FormattedMessage as T } from 'react-intl';
|
||||||
import { CLASSES } from 'common/classes';
|
import { CLASSES } from 'common/classes';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ function ItemFormBody({ accountsList, baseCurrency }) {
|
|||||||
prefix={'$'}
|
prefix={'$'}
|
||||||
inputGroupProps={{ fill: true }}
|
inputGroupProps={{ fill: true }}
|
||||||
disabled={!form.values.sellable}
|
disabled={!form.values.sellable}
|
||||||
onChange={(evt, value) => {
|
onChange={(unformattedValue) => {
|
||||||
form.setFieldValue('sell_price', value);
|
form.setFieldValue('sell_price', unformattedValue);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</ControlGroup>
|
</ControlGroup>
|
||||||
@@ -135,7 +135,7 @@ function ItemFormBody({ accountsList, baseCurrency }) {
|
|||||||
prefix={'$'}
|
prefix={'$'}
|
||||||
inputGroupProps={{ medium: true }}
|
inputGroupProps={{ medium: true }}
|
||||||
disabled={!form.values.purchasable}
|
disabled={!form.values.purchasable}
|
||||||
onChange={(evt, unformattedValue) => {
|
onChange={(unformattedValue) => {
|
||||||
form.setFieldValue('cost_price', unformattedValue);
|
form.setFieldValue('cost_price', unformattedValue);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user