Leeren individuellen Aufschlag normalisieren
This commit is contained in:
@@ -239,6 +239,13 @@ function isDateValue(value: any) {
|
||||
}
|
||||
|
||||
function normalizeCreatedDocumentPayload(payload: Record<string, any>) {
|
||||
if (Object.prototype.hasOwnProperty.call(payload, "customSurchargePercentage")) {
|
||||
const customSurchargePercentage = Number(payload.customSurchargePercentage)
|
||||
payload.customSurchargePercentage = Number.isFinite(customSurchargePercentage)
|
||||
? customSurchargePercentage
|
||||
: 0
|
||||
}
|
||||
|
||||
const numberRelationFields = [
|
||||
"customer",
|
||||
"contact",
|
||||
|
||||
Reference in New Issue
Block a user