From 9fd65de29ef1c5f3d421becc8d784127b91798fd Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 5 Mar 2024 10:43:50 -0500 Subject: [PATCH] but missing function back --- src/store/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 6d8f8084..2efd6470 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -949,7 +949,17 @@ export const useMainStore = defineStore({ }).then((response) => resolve(response), (error) => reject(error)); }); }, - + getCarrierAccountInfo() { + return new Promise((resolve, reject) => { + globalMethods.callHttpClient({ + method: endpoints.GetAccountInfo.method, + endpoint: endpoints.GetAccountInfo.url + this.issConfig.parentAccountNumber + }).then((response) => { + this.order.carrierPhoneNumber = response.data.phoneNumber; + return resolve(response.data); + }).catch((error) => reject(error)); + }); + }, async getSupportingItems() { const { glassParts } = this.lineItems; const { carId } = this.vehicle;