IO-1306 Show Export Attempts on export screens.

This commit is contained in:
Patrick Fic
2021-08-13 16:17:16 -07:00
parent dba648aea2
commit 58d1859640
9 changed files with 80 additions and 2 deletions

View File

@@ -108,7 +108,17 @@ export default function AccountingPayablesTableComponent({
<DateTimeFormatter>{record.exportedat}</DateTimeFormatter>
),
},
{
title: t("exportlogs.labels.attempts"),
dataIndex: "attempts",
key: "attempts",
render: (text, record) => {
const success = record.exportlogs.filter((e) => e.successful).length;
const attempts = record.exportlogs.length;
return `${success}/${attempts}`;
},
},
{
title: t("general.labels.actions"),
dataIndex: "actions",