diff --git a/src/api/account.js b/src/api/account.js index c972f62d..20bb1426 100644 --- a/src/api/account.js +++ b/src/api/account.js @@ -30,7 +30,9 @@ export function createAccount(data) { 'country': data.address.country, 'postCode': data.address.postCode, 'fuelRestrictions': data.restrictions.fuels, - 'terminalRestrictions': data.restrictions.terminals + 'terminalRestrictions': data.restrictions.terminals, + 'paymentTermsRestrictions': data.restrictions.paymentTerms, + 'liftingPeriodRestrictions': data.restrictions.liftingPeriods } return axios.post(`${apiUrl}/account/create`, dto) @@ -52,7 +54,9 @@ export function updateAccount(data) { 'country': data.address.country, 'postCode': data.address.postCode, 'fuelRestrictions': data.restrictions.fuels, - 'terminalRestrictions': data.restrictions.terminals + 'terminalRestrictions': data.restrictions.terminals, + 'paymentTermsRestrictions': data.restrictions.paymentTerms, + 'liftingPeriodRestrictions': data.restrictions.liftingPeriods } return axios.put(`${apiUrl}/account/${data.id}`, dto) diff --git a/src/views/accounts/components/AccountDetail.vue b/src/views/accounts/components/AccountDetail.vue index dfbd0191..6e696a55 100644 --- a/src/views/accounts/components/AccountDetail.vue +++ b/src/views/accounts/components/AccountDetail.vue @@ -115,6 +115,28 @@ + + + + + + + + + +