feat: payment receive of customers invoices.

This commit is contained in:
Ahmed Bouhuolia
2020-11-02 21:42:40 +02:00
parent 731b8fd119
commit e6cd921b94
24 changed files with 911 additions and 645 deletions

View File

@@ -4,8 +4,9 @@ import {
getInvoiceCurrentPageFactory,
getInvoicePaginationMetaFactory,
getInvoiceTableQueryFactory,
getInvoiceTableQuery,
getdueInvoices,
getCustomerReceivableInvoicesFactory,
getPaymentReceivableInvoicesFactory,
getPaymentReceiveReceivableInvoicesFactory
} from 'store/Invoice/invoices.selector';
export default (mapState) => {
@@ -14,6 +15,11 @@ export default (mapState) => {
const getInvoicesPaginationMeta = getInvoicePaginationMetaFactory();
const getInvoiceTableQuery = getInvoiceTableQueryFactory();
// const getPaymentReceivableInvoices = getPaymentReceivableInvoicesFactory();
// const getCustomerReceivableInvoices = getCustomerReceivableInvoicesFactory();
const getPaymentReceiveReceivableInvoices = getPaymentReceiveReceivableInvoicesFactory();
const mapStateToProps = (state, props) => {
const query = getInvoiceTableQuery(state, props);
@@ -24,7 +30,8 @@ export default (mapState) => {
invoicesTableQuery: query,
invoicesPageination: getInvoicesPaginationMeta(state, props, query),
invoicesLoading: state.salesInvoices.loading,
dueInvoices: getdueInvoices(state, props),
paymentReceiveReceivableInvoices: getPaymentReceiveReceivableInvoices(state, props),
};
return mapState ? mapState(mapped, state, props) : mapped;
};