Prevent duplicate invoice number reservations

This commit is contained in:
2026-08-17 17:47:07 +02:00
parent 060fde7bda
commit 391375b3a7
2 changed files with 40 additions and 34 deletions

View File

@@ -1761,7 +1761,7 @@ const saveDocument = async (state, resetup = false) => {
itemInfo.value.state = state
normalizeCustomSurchargePercentage()
if (state !== "Entwurf") {
if (state !== "Entwurf" && !itemInfo.value.documentNumber) {
console.log("???")
const type = itemInfo.value.type