mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
Merge branch 'master' of https://github.com/abouolia/Bigcapital
This commit is contained in:
18
client/src/store/billing/Billing.action.js
Normal file
18
client/src/store/billing/Billing.action.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import ApiService from 'services/ApiService';
|
||||
import t from 'store/types';
|
||||
|
||||
export const submitBilling = ({ form }) => {
|
||||
return (dispatch) =>
|
||||
new Promise((resolve, reject) => {
|
||||
ApiService.post('payment', form)
|
||||
.then((response) => {
|
||||
resolve(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
const { response } = error;
|
||||
const { data } = response;
|
||||
|
||||
reject(data?.errors);
|
||||
});
|
||||
});
|
||||
};
|
||||
0
client/src/store/billing/Billing.type.js
Normal file
0
client/src/store/billing/Billing.type.js
Normal file
@@ -23,6 +23,7 @@ import receipts from './receipt/receipt.type';
|
||||
import bills from './Bills/bills.type';
|
||||
import paymentReceives from './PaymentReceive/paymentReceive.type';
|
||||
import vendors from './vendors/vendors.types';
|
||||
import billing from './billing/Billing.type';
|
||||
|
||||
export default {
|
||||
...authentication,
|
||||
@@ -50,4 +51,5 @@ export default {
|
||||
...bills,
|
||||
...paymentReceives,
|
||||
...vendors,
|
||||
...billing
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user