elt/validation: remove supplierDiscountRub
This commit is contained in:
parent
bb6a3986b1
commit
5940f4c048
@ -24,7 +24,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
||||
model: true,
|
||||
objectRegistration: true,
|
||||
opportunity: true,
|
||||
supplierDiscountRub: true,
|
||||
townRegistration: true,
|
||||
withTrailer: true,
|
||||
}).superRefine(
|
||||
@ -46,7 +45,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
||||
leaseObjectPrice,
|
||||
leaseObjectYear,
|
||||
leasingPeriod,
|
||||
supplierDiscountRub,
|
||||
},
|
||||
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) {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user