This commit is contained in:
Курнат Андрей
2026-04-03 20:04:58 +03:00
parent 22ed7d978a
commit 1b20b39aca
75 changed files with 1094 additions and 22 deletions

View File

@@ -2186,12 +2186,6 @@ namespace XLAB2
continue;
}
if (!item.HasTemplate)
{
skippedWithoutTemplateCount++;
continue;
}
var duplicateKey = PsvDocumentLine.BuildDuplicateKey(item.InstrumentType, item.RangeText, item.RegistryNumber, item.SerialNumber);
if (duplicateKeys.Contains(duplicateKey))
{
@@ -2282,7 +2276,8 @@ namespace XLAB2
return;
}
if (!result.TypeItem.HasTemplate)
var blockOnMissingEkzmkTemplate = false;
if (blockOnMissingEkzmkTemplate && !result.TypeItem.HasTemplate)
{
_dialogService.ShowWarning("Выбранный тип нельзя добавить: для него не найден шаблон EKZMK, период из TPRMCP или регистрационный период TIPS.");
return;