Fix for deliveryNotes
This commit is contained in:
@@ -697,11 +697,11 @@ const findDocumentErrors = computed(() => {
|
|||||||
|
|
||||||
if (["normal", "service", "free"].includes(row.mode)) {
|
if (["normal", "service", "free"].includes(row.mode)) {
|
||||||
|
|
||||||
if (!row.taxPercent && typeof row.taxPercent !== "number") errors.push({
|
if (!row.taxPercent && typeof row.taxPercent !== "number" && itemInfo.value.type !== "deliveryNotes") errors.push({
|
||||||
message: `In Position ${row.pos} ist kein Steuersatz hinterlegt`,
|
message: `In Position ${row.pos} ist kein Steuersatz hinterlegt`,
|
||||||
type: "breaking"
|
type: "breaking"
|
||||||
})
|
})
|
||||||
if (!row.price && typeof row.price !== "number") errors.push({
|
if (!row.price && typeof row.price !== "number" && itemInfo.value.type !== "deliveryNotes") errors.push({
|
||||||
message: `In Position ${row.pos} ist kein Preis hinterlegt`,
|
message: `In Position ${row.pos} ist kein Preis hinterlegt`,
|
||||||
type: "breaking"
|
type: "breaking"
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user