process/recalc(validation): Не указано предложение, по которому осуществляется Пересчет без пересмотра
This commit is contained in:
parent
57058b473a
commit
7b96fc7b8b
@ -54,6 +54,14 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!quoteId) {
|
||||
ctx.addIssue({
|
||||
code: z.ZodIssueCode.custom,
|
||||
message: 'Не указано предложение, по которому осуществляется Пересчет без пересмотра',
|
||||
path: ['selectQuote'],
|
||||
});
|
||||
}
|
||||
|
||||
if (dealerPersonId && quoteId && productId) {
|
||||
const {
|
||||
data: { account: dealerPerson },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user