IO-1906 Remove bin from bill edit.
This commit is contained in:
@@ -314,15 +314,17 @@ export function BillFormComponent({
|
|||||||
>
|
>
|
||||||
<CurrencyInput min={0} disabled={disabled} />
|
<CurrencyInput min={0} disabled={disabled} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("bills.fields.allpartslocation")} name="location">
|
{!billEdit && (
|
||||||
<Select style={{ width: "10rem" }} disabled={disabled} allowClear>
|
<Form.Item label={t("bills.fields.allpartslocation")} name="location">
|
||||||
{bodyshop.md_parts_locations.map((loc, idx) => (
|
<Select style={{ width: "10rem" }} disabled={disabled} allowClear>
|
||||||
<Select.Option key={idx} value={loc}>
|
{bodyshop.md_parts_locations.map((loc, idx) => (
|
||||||
{loc}
|
<Select.Option key={idx} value={loc}>
|
||||||
</Select.Option>
|
{loc}
|
||||||
))}
|
</Select.Option>
|
||||||
</Select>
|
))}
|
||||||
</Form.Item>
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
)}
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow>
|
<LayoutFormRow>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|||||||
@@ -323,28 +323,31 @@ export function BillEnterModalLinesComponent({
|
|||||||
</Select>
|
</Select>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
...(billEdit
|
||||||
{
|
? []
|
||||||
title: t("billlines.fields.location"),
|
: [
|
||||||
dataIndex: "location",
|
{
|
||||||
editable: true,
|
title: t("billlines.fields.location"),
|
||||||
label: t("billlines.fields.location"),
|
dataIndex: "location",
|
||||||
formItemProps: (field) => {
|
editable: true,
|
||||||
return {
|
label: t("billlines.fields.location"),
|
||||||
key: `${field.index}location`,
|
formItemProps: (field) => {
|
||||||
name: [field.name, "location"],
|
return {
|
||||||
};
|
key: `${field.index}location`,
|
||||||
},
|
name: [field.name, "location"],
|
||||||
formInput: (record, index) => (
|
};
|
||||||
<Select disabled={disabled}>
|
},
|
||||||
{bodyshop.md_parts_locations.map((loc, idx) => (
|
formInput: (record, index) => (
|
||||||
<Select.Option key={idx} value={loc}>
|
<Select disabled={disabled}>
|
||||||
{loc}
|
{bodyshop.md_parts_locations.map((loc, idx) => (
|
||||||
</Select.Option>
|
<Select.Option key={idx} value={loc}>
|
||||||
))}
|
{loc}
|
||||||
</Select>
|
</Select.Option>
|
||||||
),
|
))}
|
||||||
},
|
</Select>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
]),
|
||||||
{
|
{
|
||||||
title: t("billlines.labels.deductedfromlbr"),
|
title: t("billlines.labels.deductedfromlbr"),
|
||||||
dataIndex: "deductedfromlbr",
|
dataIndex: "deductedfromlbr",
|
||||||
|
|||||||
Reference in New Issue
Block a user