Added Document Number trycatch
This commit is contained in:
@@ -981,9 +981,17 @@ const saveDocument = async (state,resetup = false) => {
|
|||||||
type = itemInfo.value.type
|
type = itemInfo.value.type
|
||||||
}
|
}
|
||||||
|
|
||||||
itemInfo.value.documentNumber = await useFunctions().useNextNumber(type) //data.usedNumber
|
try {
|
||||||
|
itemInfo.value.documentNumber = await useFunctions().useNextNumber(type) //data.usedNumber
|
||||||
|
|
||||||
|
setDocumentTypeConfig(false)
|
||||||
|
} catch {
|
||||||
|
console.log("Error Happend")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setDocumentTypeConfig(false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(profileStore.ownTenant.extraModules.includes("agriculture")) {
|
if(profileStore.ownTenant.extraModules.includes("agriculture")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user