Fixed Load of existing Doc without Created_by
This commit is contained in:
@@ -485,6 +485,7 @@ const setCustomerData = async (customerId, loadOnlyAdress = false) => {
|
||||
|
||||
const setContactPersonData = async () => {
|
||||
//console.log(itemInfo.value.contactPerson) //TODO: BACKEND CHANGE Set Profile
|
||||
if(itemInfo.value.created_by) {
|
||||
let profile = (await useNuxtApp().$api(`/api/user/${itemInfo.value.created_by}`, {
|
||||
method: "GET"
|
||||
})).profile
|
||||
@@ -492,7 +493,7 @@ const setContactPersonData = async () => {
|
||||
itemInfo.value.contactPersonName = profile.full_name
|
||||
itemInfo.value.contactTel = profile.mobile_tel || profile.fixed_tel || ""
|
||||
itemInfo.value.contactEMail = profile.email
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
const showAdvanceInvoiceCalcModal = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user