Merged in release/2024-03-08 (pull request #1329)

Release/2024 03 08
This commit is contained in:
Allan Carr
2024-03-08 19:39:07 +00:00
3 changed files with 9 additions and 19 deletions

View File

@@ -138,7 +138,6 @@ export function AccountingPayablesTableComponent({
title: t("exportlogs.labels.attempts"), title: t("exportlogs.labels.attempts"),
dataIndex: "attempts", dataIndex: "attempts",
key: "attempts", key: "attempts",
render: (text, record) => ( render: (text, record) => (
<ExportLogsCountDisplay logs={record.exportlogs} /> <ExportLogsCountDisplay logs={record.exportlogs} />
), ),
@@ -147,8 +146,6 @@ export function AccountingPayablesTableComponent({
title: t("general.labels.actions"), title: t("general.labels.actions"),
dataIndex: "actions", dataIndex: "actions",
key: "actions", key: "actions",
sorter: (a, b) => a.clm_total - b.clm_total,
render: (text, record) => ( render: (text, record) => (
<PayableExportButton <PayableExportButton
billId={record.id} billId={record.id}

View File

@@ -78,7 +78,10 @@ export function AccountingPayablesTableComponent({
key: "owner", key: "owner",
ellipsis: true, ellipsis: true,
sorter: (a, b) => sorter: (a, b) =>
alphaSort(OwnerNameDisplayFunction(a), OwnerNameDisplayFunction(b)), alphaSort(
OwnerNameDisplayFunction(a.job),
OwnerNameDisplayFunction(b.job)
),
sortOrder: sortOrder:
state.sortedInfo.columnKey === "owner" && state.sortedInfo.order, state.sortedInfo.columnKey === "owner" && state.sortedInfo.order,
render: (text, record) => { render: (text, record) => {
@@ -146,8 +149,6 @@ export function AccountingPayablesTableComponent({
title: t("general.labels.actions"), title: t("general.labels.actions"),
dataIndex: "actions", dataIndex: "actions",
key: "actions", key: "actions",
sorter: (a, b) => a.clm_total - b.clm_total,
render: (text, record) => ( render: (text, record) => (
<PaymentExportButton <PaymentExportButton
paymentId={record.id} paymentId={record.id}

View File

@@ -1,10 +1,5 @@
import { import { BranchesOutlined, PauseCircleOutlined } from "@ant-design/icons";
BorderOutlined, import { Checkbox, Space, Tooltip } from "antd";
BranchesOutlined,
CheckSquareOutlined,
PauseCircleOutlined,
} from "@ant-design/icons";
import { Space, Tooltip } from "antd";
import i18n from "i18next"; import i18n from "i18next";
import moment from "moment"; import moment from "moment";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
@@ -312,12 +307,9 @@ const r = ({ technician, state, activeStatuses, data, bodyshop }) => {
], ],
onFilter: (value, record) => onFilter: (value, record) =>
value.includes(record.special_coverage_policy), value.includes(record.special_coverage_policy),
render: (text, record) => render: (text, record) => (
record.special_coverage_policy === true ? ( <Checkbox disabled checked={record.special_coverage_policy} />
<CheckSquareOutlined /> ),
) : (
<BorderOutlined />
),
}, },
{ {