Missed in last commit IO-575

This commit is contained in:
Patrick Fic
2021-01-21 14:20:00 -08:00
parent 7495d83200
commit 7961e27eee
7 changed files with 52 additions and 18 deletions

View File

@@ -1,9 +1,11 @@
import { Spin } from "antd";
import React from "react";
import AlertComponent from "../alert/alert.component";
export default function JobLinesBillRefernece({
jobline,
loading,
error,
billLinesObject,
}) {
if (loading)
@@ -17,6 +19,8 @@ export default function JobLinesBillRefernece({
const billLine = billLinesObject[jobline.id];
if (!billLine) return null;
if (error) return <AlertComponent message={error.message} type="error" />;
return (
<div>{`${(billLine.actual_price * billLine.quantity).toFixed(2)} (${
billLine.bill.vendor.name