Added config provider with default small text. Replcaed all datepicker components to add proper format. BOD-166 BOD-246

This commit is contained in:
Patrick Fic
2020-08-04 15:52:57 -07:00
parent 8590767e33
commit bdba1a2132
31 changed files with 329 additions and 247 deletions

View File

@@ -16,7 +16,7 @@ const InvoiceLineSearchSelect = (
if (value !== option && onChange) {
onChange(option);
}
}, [option, onChange]);
}, [value, option, onChange]);
return (
<Select
@@ -28,9 +28,10 @@ const InvoiceLineSearchSelect = (
width: 300,
}}
onChange={setOption}
optionFilterProp='line_desc'
optionFilterProp="line_desc"
onBlur={onBlur}
onSelect={onSelect}>
onSelect={onSelect}
>
<Select.Option key={null} value={"noline"} cost={0} line_desc={""}>
{t("invoicelines.labels.other")}
</Select.Option>
@@ -42,14 +43,15 @@ const InvoiceLineSearchSelect = (
cost={item.act_price ? item.act_price : 0}
part_type={item.part_type}
line_desc={item.line_desc}
part_qty={item.part_qty}>
<Row justify='center' align='middle'>
part_qty={item.part_qty}
>
<Row justify="center" align="middle">
<Col span={12}>{item.line_desc}</Col>
<Col span={8}>
<Tag color='blue'>{item.oem_partno}</Tag>
<Tag color="blue">{item.oem_partno}</Tag>
</Col>
<Col span={4}>
<Tag color='green'>
<Tag color="green">
<CurrencyFormatter>{item.act_price || 0}</CurrencyFormatter>
</Tag>
</Col>