mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
Merge pull request #33 from bigcapitalhq/BIG-221-remove-non-inventory-radio-choice-on-item-form
BIG-221: remove non inventory radio.
This commit is contained in:
@@ -47,11 +47,6 @@ export default function ItemFormPrimarySection() {
|
|||||||
<div class="mb1">
|
<div class="mb1">
|
||||||
<FormattedHTMLMessage id={'products_you_buy_and_or_sell'} />
|
<FormattedHTMLMessage id={'products_you_buy_and_or_sell'} />
|
||||||
</div>
|
</div>
|
||||||
<div class="mb1">
|
|
||||||
<FormattedHTMLMessage
|
|
||||||
id={'products_you_buy_and_or_sell_but_don_t_need'}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -86,7 +81,6 @@ export default function ItemFormPrimarySection() {
|
|||||||
disabled={!isNewMode && item.type === 'inventory'}
|
disabled={!isNewMode && item.type === 'inventory'}
|
||||||
>
|
>
|
||||||
<Radio label={<T id={'service'} />} value="service" />
|
<Radio label={<T id={'service'} />} value="service" />
|
||||||
<Radio label={<T id={'non_inventory'} />} value="non-inventory" />
|
|
||||||
<Radio label={<T id={'inventory'} />} value="inventory" />
|
<Radio label={<T id={'inventory'} />} value="inventory" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
@@ -126,7 +120,11 @@ export default function ItemFormPrimarySection() {
|
|||||||
helperText={<ErrorMessage name={'code'} />}
|
helperText={<ErrorMessage name={'code'} />}
|
||||||
inline={true}
|
inline={true}
|
||||||
>
|
>
|
||||||
<InputGroup medium={true} intent={inputIntent({ error, touched })} {...field} />
|
<InputGroup
|
||||||
|
medium={true}
|
||||||
|
intent={inputIntent({ error, touched })}
|
||||||
|
{...field}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
)}
|
)}
|
||||||
</FastField>
|
</FastField>
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ export const transitionItemTypeKeyToLabel = (itemTypeKey) => {
|
|||||||
const table = {
|
const table = {
|
||||||
service: intl.get('service'),
|
service: intl.get('service'),
|
||||||
inventory: intl.get('inventory'),
|
inventory: intl.get('inventory'),
|
||||||
'non-inventory': intl.get('non_inventory'),
|
|
||||||
};
|
};
|
||||||
return typeof table[itemTypeKey] === 'string' ? table[itemTypeKey] : '';
|
return typeof table[itemTypeKey] === 'string' ? table[itemTypeKey] : '';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user