IO-244 IOU updates to remove act price.

This commit is contained in:
Patrick Fic
2021-12-13 12:32:10 -08:00
parent 1ae942988c
commit 3b756beba6
2 changed files with 13 additions and 5 deletions

View File

@@ -56,17 +56,23 @@ export default function JobLineNotePopup({ jobline, disabled }) {
</div>
);
return (
<div
style={{ width: "100%", minHeight: "2rem", cursor: "pointer" }}
onClick={() => !disabled && setEditing(true)}
>
<div>
{jobline.ioucreated && (
<Space>
<FieldTimeOutlined />
{t("joblines.labels.ioucreated")}
</Space>
)}
{jobline.notes}
<div
style={{
width: "100%",
minHeight: "2rem",
cursor: "pointer",
}}
onClick={() => !disabled && setEditing(true)}
>
{jobline.notes}
</div>
</div>
);
}

View File

@@ -108,6 +108,8 @@ export async function CreateIouForJob(
_tempLines.forEach((line) => {
delete line.id;
delete line.__typename;
line.oem_partno = `line.oem_partno - IOU Price $${line.act_price}`
delete line.act_price;
line.manual_line = true;
});