elt/validation: remove supplierDiscountRub
This commit is contained in:
parent
bb6a3986b1
commit
5940f4c048
@ -24,7 +24,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
|||||||
model: true,
|
model: true,
|
||||||
objectRegistration: true,
|
objectRegistration: true,
|
||||||
opportunity: true,
|
opportunity: true,
|
||||||
supplierDiscountRub: true,
|
|
||||||
townRegistration: true,
|
townRegistration: true,
|
||||||
withTrailer: true,
|
withTrailer: true,
|
||||||
}).superRefine(
|
}).superRefine(
|
||||||
@ -46,7 +45,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
|||||||
leaseObjectPrice,
|
leaseObjectPrice,
|
||||||
leaseObjectYear,
|
leaseObjectYear,
|
||||||
leasingPeriod,
|
leasingPeriod,
|
||||||
supplierDiscountRub,
|
|
||||||
},
|
},
|
||||||
ctx
|
ctx
|
||||||
) => {
|
) => {
|
||||||
@ -74,14 +72,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!supplierDiscountRub) {
|
|
||||||
ctx.addIssue({
|
|
||||||
code: z.ZodIssueCode.custom,
|
|
||||||
message: 'Не заполнено поле ' + titles.tbxSupplierDiscountRub,
|
|
||||||
path: ['eltKasko', 'eltOsago'],
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!leasingPeriod) {
|
if (!leasingPeriod) {
|
||||||
ctx.addIssue({
|
ctx.addIssue({
|
||||||
code: z.ZodIssueCode.custom,
|
code: z.ZodIssueCode.custom,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user