mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: payment receive and made form.
This commit is contained in:
@@ -56,20 +56,33 @@ export const fetchPaymentReceive = ({ id }) => {
|
||||
type: t.PAYMENT_RECEIVE_SET,
|
||||
payload: {
|
||||
id,
|
||||
paymentReceive: response.data.paymentReceive,
|
||||
paymentReceive: response.data.payment_receive,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
type: t.INVOICES_ITEMS_SET,
|
||||
payload: {
|
||||
sales_invoices: response.data.sale_invoice.receivable_invoices,
|
||||
sales_invoices: response.data.receivable_invoices,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
type: t.INVOICES_ITEMS_SET,
|
||||
payload: {
|
||||
sales_invoices: response.data.payment_invoices,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
type: t.INVOICES_RECEIVABLE_BY_PAYMENT_ID,
|
||||
payload: {
|
||||
paymentReceiveid: response.data.id,
|
||||
saleInvoices: response.data.sale_invoice.receivable_invoices,
|
||||
paymentReceiveId: response.data.payment_receive.id,
|
||||
saleInvoices: response.data.receivable_invoices,
|
||||
},
|
||||
});
|
||||
dispatch({
|
||||
type: t.INVOICES_BY_PAYMENT_ID,
|
||||
payload: {
|
||||
paymentReceiveId: response.data.payment_receive.id,
|
||||
saleInvoices: response.data.payment_invoices,
|
||||
},
|
||||
});
|
||||
resovle(response);
|
||||
|
||||
Reference in New Issue
Block a user