Resolved decimal issue for mileage IO-434
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Col, Form, Input, Row, Select, Switch } from "antd";
|
||||
import { Col, Form, Input, InputNumber, Row, Select, Switch } from "antd";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
@@ -111,10 +111,10 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
|
||||
<FormDatePicker disabled={jobRO} />
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.kmin")} name="kmin">
|
||||
<InputNumberCalculator precision={0} min={0} disabled={jobRO} />
|
||||
<InputNumber precision={0} min={0} disabled={jobRO} />
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.kmout")} name="kmout">
|
||||
<InputNumberCalculator precision={0} min={0} disabled={jobRO} />
|
||||
<InputNumber precision={0} min={0} disabled={jobRO} />
|
||||
</Form.Item>
|
||||
<Form.Item label={t("jobs.fields.ponumber")} name="po_number">
|
||||
<Input disabled={jobRO} />
|
||||
|
||||
@@ -81,7 +81,7 @@ export default function VendorsFormComponent({
|
||||
</LayoutFormRow>
|
||||
<LayoutFormRow>
|
||||
<Form.Item label={t("vendors.fields.discount")} name="discount">
|
||||
<InputNumberCalculator />
|
||||
<InputNumber min={0} max={1} precision={2} />
|
||||
</Form.Item>
|
||||
<Form.Item label={t("vendors.fields.terms")} name="terms">
|
||||
<Input />
|
||||
@@ -161,5 +161,5 @@ export default function VendorsFormComponent({
|
||||
}}
|
||||
</Form.List>
|
||||
</div>
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user