Add error when price calculation was not successful
This commit is contained in:
@@ -81,6 +81,7 @@
|
|||||||
MandatorNotFound
|
MandatorNotFound
|
||||||
MissingXmlAttribute
|
MissingXmlAttribute
|
||||||
AttributeValidationFailed
|
AttributeValidationFailed
|
||||||
|
PriceNotCalculated
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Public Class DocumentError
|
Public Class DocumentError
|
||||||
|
|||||||
@@ -383,6 +383,7 @@ Namespace Documents
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Async Function MaybeApplyPriceFunctions(pDocument As Document, pMandator As Mandator, pTemplate As Template) As Task(Of Document)
|
Public Async Function MaybeApplyPriceFunctions(pDocument As Document, pMandator As Mandator, pTemplate As Template) As Task(Of Document)
|
||||||
If pDocument.HasErrors Then
|
If pDocument.HasErrors Then
|
||||||
|
pDocument.AddDocumentError(DocumentErrorType.PriceNotCalculated, "Der Preis konnte für mindestens eine Zeile nicht ermittelt werden, weil es noch Fehler im Dokument gibt")
|
||||||
Return pDocument
|
Return pDocument
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user