Added first round of analytics and event tracking BOD-190

This commit is contained in:
Patrick Fic
2020-07-17 08:27:28 -07:00
parent 3f0394760a
commit a54a85b96c
73 changed files with 433 additions and 208 deletions

View File

@@ -8,6 +8,7 @@ import InvoiceExportButton from "../invoice-export-button/invoice-export-button.
import InvoiceExportAllButton from "../invoice-export-all-button/invoice-export-all-button.component";
import { DateFormatter } from "../../utils/DateFormatter";
import queryString from "query-string";
import { logImEXEvent } from "../../firebase/firebase.utils";
export default function AccountingPayablesTableComponent({
loading,
@@ -38,8 +39,7 @@ export default function AccountingPayablesTableComponent({
to={{
pathname: `/manage/shop/vendors`,
search: queryString.stringify({ selectedvendor: record.vendor.id }),
}}
>
}}>
{record.vendor.name}
</Link>
),
@@ -60,8 +60,7 @@ export default function AccountingPayablesTableComponent({
invoiceid: record.id,
vendorid: record.vendor.id,
}),
}}
>
}}>
{record.invoice_number}
</Link>
),
@@ -131,6 +130,7 @@ export default function AccountingPayablesTableComponent({
const handleSearch = (e) => {
setState({ ...state, search: e.target.value });
logImEXEvent("accounting_payables_table_search");
};
const dataSource = state.search
@@ -168,10 +168,10 @@ export default function AccountingPayablesTableComponent({
);
}}
dataSource={dataSource}
size="small"
size='small'
pagination={{ position: "top", pageSize: 50 }}
columns={columns}
rowKey="id"
rowKey='id'
onChange={handleTableChange}
rowSelection={{
onSelectAll: (selected, selectedRows) =>