Fixed rounding bug on invoice total calculation BOD-120. Added documents viewing to edit invoice BOD-75 BOD-63.

This commit is contained in:
Patrick Fic
2020-05-07 09:25:48 -07:00
parent 9d4b36aeec
commit 723f8da825
13 changed files with 65 additions and 30 deletions

View File

@@ -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}