Added untested changes for exporting all receivables BOD-240

This commit is contained in:
Patrick Fic
2020-08-03 08:51:23 -07:00
parent b9f555683f
commit 0f5deae22e
6 changed files with 219 additions and 57 deletions

View File

@@ -39,7 +39,8 @@ export default function AccountingPayablesTableComponent({
to={{
pathname: `/manage/shop/vendors`,
search: queryString.stringify({ selectedvendor: record.vendor.id }),
}}>
}}
>
{record.vendor.name}
</Link>
),
@@ -60,7 +61,8 @@ export default function AccountingPayablesTableComponent({
invoiceid: record.id,
vendorid: record.vendor.id,
}),
}}>
}}
>
{record.invoice_number}
</Link>
),
@@ -160,7 +162,7 @@ export default function AccountingPayablesTableComponent({
/>
<InvoiceExportAllButton
invoiceIds={selectedInvoices}
disabled={transInProgress}
disabled={transInProgress || selectedInvoices.length === 0}
loadingCallback={setTransInProgress}
completedCallback={setSelectedInvoices}
/>
@@ -168,10 +170,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) =>