IO-1178 Resolve minor bugs.

This commit is contained in:
Patrick Fic
2021-06-01 14:36:28 -07:00
parent 74b3ceec63
commit 0108135fe9
6 changed files with 29 additions and 3 deletions

View File

@@ -157,10 +157,12 @@ export function JobLinesComponent({
render: (text, record) => (
<>
<CurrencyFormatter>{record.act_price}</CurrencyFormatter>
{record.prt_dsmk_p && record.prt_dsmk_p !== 0 && (
{record.prt_dsmk_p && record.prt_dsmk_p !== 0 ? (
<span
style={{ marginLeft: ".2rem" }}
>{`(${record.prt_dsmk_p}%)`}</span>
) : (
<></>
)}
</>
),

View File

@@ -215,7 +215,7 @@ export default function JobLinesUpsertModalComponent({
name="prt_dsmk_p"
initialValue={0}
>
<InputCurrency precision={0} min={0} max={100} />
<InputNumber precision={0} min={0} max={100} />
</Form.Item>
</LayoutFormRow>
</Form>