diff --git a/client/src/components/bills-list-table/bills-list-table.component.jsx b/client/src/components/bills-list-table/bills-list-table.component.jsx index a9ec77186..9170b563b 100644 --- a/client/src/components/bills-list-table/bills-list-table.component.jsx +++ b/client/src/components/bills-list-table/bills-list-table.component.jsx @@ -208,7 +208,9 @@ export function BillsListTableComponent({ >
{ diff --git a/client/src/components/job-costing-parts-table/job-costing-parts-table.component.jsx b/client/src/components/job-costing-parts-table/job-costing-parts-table.component.jsx index acc81ef91..6e80f1fad 100644 --- a/client/src/components/job-costing-parts-table/job-costing-parts-table.component.jsx +++ b/client/src/components/job-costing-parts-table/job-costing-parts-table.component.jsx @@ -87,7 +87,9 @@ export default function JobCostingPartsTable({ data, summaryData }) { ); }} - scroll={{ x: "50%", y: "40rem" }} + scroll={{ + x: "50%", //y: "40rem" + }} onChange={handleTableChange} pagination={{ position: "top", defaultPageSize: 25 }} columns={columns} 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 48e7008f7..be0fba05d 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, Table } from "antd"; +import { Checkbox, PageHeader, Table } from "antd"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; @@ -86,7 +86,7 @@ export default function JobReconciliationBillsTable({ }; return ( -
+
- + ); } 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 3103fe29f..496c06e4b 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 { Table } from "antd"; +import { PageHeader, Table } from "antd"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import CurrencyFormatter from "../../utils/CurrencyFormatter"; @@ -102,7 +102,7 @@ export default function JobReconcilitionPartsTable({ }; return ( -
+
{t("jobs.labels.reconciliation.removedpartsstrikethrough")} - + ); } diff --git a/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx b/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx index c1c79c677..6ee708aa6 100644 --- a/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx +++ b/client/src/components/parts-order-list-table/parts-order-list-table.component.jsx @@ -321,18 +321,19 @@ export function PartsOrderListTableComponent({ ]; return ( - <> +
- + ); }; @@ -367,7 +368,9 @@ export function PartsOrderListTableComponent({
> ", grouped); return (
diff --git a/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx b/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx index 4c41b0d95..46e203eb5 100644 --- a/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx +++ b/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx @@ -217,7 +217,8 @@ const JobRelatedTicketsTable = ({
>.query - let templateAndData = []; + let unsortedTemplatesAndData = []; let proms = []; templateObjects.forEach((template) => { proms.push( @@ -71,7 +72,7 @@ export async function RenderTemplates( let { contextData, useShopSpecificTemplate } = await fetchContextData( template ); - templateAndData.push({ + unsortedTemplatesAndData.push({ templateObject: template, contextData, useShopSpecificTemplate, @@ -80,6 +81,22 @@ export async function RenderTemplates( ); }); await Promise.all(proms); + + //Re-order list to follow speedprint. + // var templateAndData = _.sortBy(unsortedTemplatesAndData, function (item) { + // return templateObjects.findIndex( + // (template) => template.name === item.templateObject.name + // ); + // }); + + unsortedTemplatesAndData.sort(function (a, b) { + return ( + templateObjects.findIndex((x) => x.name === a.templateObject.name) - + templateObjects.findIndex((x) => x.name === b.templateObject.name) + ); + }); + const templateAndData = unsortedTemplatesAndData; + let rootTemplate = templateAndData.shift(); let reportRequest = {