- the great reformat

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-06 18:20:58 -05:00
parent 30c530bcc4
commit e83badb454
912 changed files with 108516 additions and 107493 deletions

View File

@@ -1,16 +1,17 @@
import React from "react";
import { WarningFilled } from "@ant-design/icons";
export default function JobLinesBillRefernece({ jobline }) {
const billLine = jobline.billlines && jobline.billlines[0];
import {WarningFilled} from "@ant-design/icons";
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>
);
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>
);
}