From f19289362da34eba21c4f62d7c9d20a316a95fe1 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 8 Jul 2021 11:12:58 -0700 Subject: [PATCH] IO-1249 Adjust reconciliation window sizing. --- ...b-reconciliation-bills-table.component.jsx | 15 ++++++--- .../job-reconciliation-modal.component.jsx | 32 ++++++++++--------- .../job-reconciliation-modal.styles.scss | 12 +++++++ .../job-reconciliation.modal.container.jsx | 21 ++++++------ ...b-reconciliation-parts-table.component.jsx | 10 +++--- 5 files changed, 56 insertions(+), 34 deletions(-) create mode 100644 client/src/components/job-reconciliation-modal/job-reconciliation-modal.styles.scss diff --git a/client/src/components/job-reconciliation-bills-table/job-reconciliation-bills-table.component.jsx b/client/src/components/job-reconciliation-bills-table/job-reconciliation-bills-table.component.jsx index be0fba05d..40cd8120c 100644 --- a/client/src/components/job-reconciliation-bills-table/job-reconciliation-bills-table.component.jsx +++ b/client/src/components/job-reconciliation-bills-table/job-reconciliation-bills-table.component.jsx @@ -1,4 +1,4 @@ -import { Checkbox, PageHeader, Table } from "antd"; +import { Checkbox, Table, Typography } from "antd"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; @@ -21,6 +21,7 @@ export default function JobReconciliationBillsTable({ title: t("billlines.fields.line_desc"), dataIndex: "line_desc", key: "line_desc", + width: "35%", sorter: (a, b) => alphaSort(a.line_desc, b.line_desc), sortOrder: state.sortedInfo.columnKey === "line_desc" && state.sortedInfo.order, @@ -29,6 +30,8 @@ export default function JobReconciliationBillsTable({ title: t("billlines.labels.from"), dataIndex: "from", key: "from", + width: "20%", + ellipsis: true, render: (text, record) => `${record.bill.vendor && record.bill.vendor.name} / ${ record.bill.invoice_number @@ -57,7 +60,7 @@ export default function JobReconciliationBillsTable({ ), }, { - title: t("billlines.fields.quantity"), + title: t("joblines.fields.part_qty"), dataIndex: "quantity", key: "quantity", sorter: (a, b) => a.quantity - b.quantity, @@ -86,10 +89,12 @@ export default function JobReconciliationBillsTable({ }; return ( - +
+ {t("bills.labels.bills")} - + ); } diff --git a/client/src/components/job-reconciliation-modal/job-reconciliation-modal.component.jsx b/client/src/components/job-reconciliation-modal/job-reconciliation-modal.component.jsx index 7b5b8aac8..f817a4e73 100644 --- a/client/src/components/job-reconciliation-modal/job-reconciliation-modal.component.jsx +++ b/client/src/components/job-reconciliation-modal/job-reconciliation-modal.component.jsx @@ -22,21 +22,23 @@ export default function JobReconciliationModalComponent({ job, bills }) { ); return ( -
- -
- - - - - - +
+
+ +
+ + + + + + + - - {error && } - {data && ( - - )} - + {loading && } + {error && } + {data && ( + + )} ); } diff --git a/client/src/components/job-reconciliation-parts-table/job-reconciliation-parts-table.component.jsx b/client/src/components/job-reconciliation-parts-table/job-reconciliation-parts-table.component.jsx index 496c06e4b..2bb5a7f53 100644 --- a/client/src/components/job-reconciliation-parts-table/job-reconciliation-parts-table.component.jsx +++ b/client/src/components/job-reconciliation-parts-table/job-reconciliation-parts-table.component.jsx @@ -1,4 +1,4 @@ -import { PageHeader, Table } from "antd"; +import { PageHeader, Table, Typography } from "antd"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; @@ -102,11 +102,13 @@ export default function JobReconcilitionPartsTable({ }; return ( - +
+ {t("jobs.labels.lines")}
{t("jobs.labels.reconciliation.removedpartsstrikethrough")} - + ); }