Added Pagebreak Error

This commit is contained in:
2025-11-11 19:36:38 +01:00
parent 57abbe8534
commit 24e80a6a0a

View File

@@ -661,7 +661,7 @@ const findDocumentErrors = computed(() => {
if (itemInfo.value.rows.length === 0) {
errors.push({message: "Es sind keine Positionen angegeben", type: "breaking"})
} else {
itemInfo.value.rows.forEach(row => {
itemInfo.value.rows.forEach((row,index) => {
if (itemInfo.value.type !== "quotes" && row.optional) {
errors.push({
@@ -717,6 +717,10 @@ const findDocumentErrors = computed(() => {
}
}
if (index === itemInfo.value.rows.length - 1 && row.mode === "pagebreak") {
errors.push({message: `Die letze Position darf kein Seitenumbruch sein`, type: "breaking"})
}
})
}