Fixed rounding bug on invoice total calculation BOD-120. Added documents viewing to edit invoice BOD-75 BOD-63.
This commit is contained in:
@@ -4,7 +4,7 @@ const { Option } = Select;
|
||||
|
||||
//To be used as a form element only.
|
||||
|
||||
const JobSearchSelect = ({ value, onChange, options, onBlur }) => {
|
||||
const JobSearchSelect = ({ value, onChange, options, onBlur, disabled }) => {
|
||||
const [option, setOption] = useState(value);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -15,22 +15,25 @@ const JobSearchSelect = ({ value, onChange, options, onBlur }) => {
|
||||
|
||||
return (
|
||||
<Select
|
||||
disabled={disabled}
|
||||
showSearch
|
||||
autoFocus
|
||||
value={option}
|
||||
style={{
|
||||
width: 300
|
||||
width: 300,
|
||||
}}
|
||||
onChange={setOption}
|
||||
optionFilterProp="children"
|
||||
onBlur={onBlur}
|
||||
>
|
||||
{options
|
||||
? options.map(o => (
|
||||
? options.map((o) => (
|
||||
<Option key={o.id} value={o.id}>
|
||||
{`${o.ro_number ? o.ro_number : o.est_number} | ${o.ownr_ln ||
|
||||
""} ${o.ownr_fn || ""} | ${o.v_model_yr ||
|
||||
""} ${o.v_make_desc || ""} ${o.v_model_desc || ""}`}
|
||||
{`${o.ro_number ? o.ro_number : o.est_number} | ${
|
||||
o.ownr_ln || ""
|
||||
} ${o.ownr_fn || ""} | ${o.v_model_yr || ""} ${
|
||||
o.v_make_desc || ""
|
||||
} ${o.v_model_desc || ""}`}
|
||||
</Option>
|
||||
))
|
||||
: null}
|
||||
|
||||
Reference in New Issue
Block a user