Reformat all project files to use the prettier config file.

This commit is contained in:
Patrick Fic
2024-03-27 15:35:07 -07:00
parent b161530381
commit e1df64d592
873 changed files with 111387 additions and 125473 deletions

View File

@@ -1,17 +1,17 @@
import React from "react";
import {WarningFilled} from "@ant-design/icons";
import { WarningFilled } from "@ant-design/icons";
export default function JobLinesBillRefernece({jobline}) {
const billLine = jobline.billlines && jobline.billlines[0];
export default function JobLinesBillRefernece({ jobline }) {
const billLine = jobline.billlines && jobline.billlines[0];
if (!billLine) return null;
const subletRequired = billLine.actual_price !== jobline.act_price;
return (
<div style={{color: subletRequired && "tomato"}}>
{subletRequired && <WarningFilled/>}
{`${billLine.actual_price.toFixed(2)} x ${billLine.quantity} (${
billLine.bill.vendor.name
} #${billLine.bill.invoice_number})`}
</div>
);
if (!billLine) return null;
const subletRequired = billLine.actual_price !== jobline.act_price;
return (
<div style={{ color: subletRequired && "tomato" }}>
{subletRequired && <WarningFilled />}
{`${billLine.actual_price.toFixed(2)} x ${billLine.quantity} (${
billLine.bill.vendor.name
} #${billLine.bill.invoice_number})`}
</div>
);
}