There is a requisite in the "Delivery Date" document. His user fills himself. How to put a ban on choosing a date earlier than the current date?
I tried to compare it with the current date with the error output, but my code also does not work:
&НаКлиенте Процедура ДатаПриИзменении(Элемент) Дата = Элементы.ДатаДоставки.ТекущиеДанные; Если Дата().Сравнить(ТекущаяДата()) = -1 Тогда Сообщить ("Ввод раньше текущей даты запрещен!"); КонецЕсли КонецПроцедуры