Added invoice totals + high level reconciliation on PLI jobs tab. BOD-26
This commit is contained in:
@@ -4,6 +4,7 @@ import { connect } from "react-redux";
|
||||
import { setModalContext } from "../../redux/modals/modals.actions";
|
||||
import AlertComponent from "../alert/alert.component";
|
||||
import InvoicesListTableComponent from "../invoices-list-table/invoices-list-table.component";
|
||||
import JobInvoicesTotalsComponent from "../job-invoices-total/job-invoices-total.component";
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
setInvoiceEnterContext: (context) =>
|
||||
@@ -27,13 +28,19 @@ export function JobsDetailPliComponent({
|
||||
job,
|
||||
},
|
||||
});
|
||||
}}
|
||||
>
|
||||
}}>
|
||||
Enter Invoice
|
||||
</Button>
|
||||
{invoicesQuery.error ? (
|
||||
<AlertComponent message={invoicesQuery.error.message} type="error" />
|
||||
<AlertComponent message={invoicesQuery.error.message} type='error' />
|
||||
) : null}
|
||||
|
||||
<JobInvoicesTotalsComponent
|
||||
invoices={invoicesQuery.data ? invoicesQuery.data.invoices : null}
|
||||
loading={invoicesQuery.loading}
|
||||
jobTotals={job.job_totals}
|
||||
/>
|
||||
|
||||
<InvoicesListTableComponent
|
||||
loading={invoicesQuery.loading}
|
||||
handleOnRowClick={handleOnRowClick}
|
||||
|
||||
Reference in New Issue
Block a user