- Treatments book their dose from a medicine lot (delta booking on edit, bulk all-or-nothing, idempotent); Bestandsbuch columns from the lot, FEHLT exactly where treatmentLogGaps reports a gap; Bestandsbuch export needs veterinary-medicines:read. - Label printing: 409 LABEL_PARTICULARS_MISSING on gaps, proof print with watermark, PRINT audit before the PDF, check endpoints; digit rules only from the seeded ComplianceSettings row (fail closed). - Restricted zone (Berlin day): create, update, move, merge and CSV import blocked inside an active restriction; override with reason and compliance:manage, audited, never stored on the colony; split, harvest and dissolve stay free; restriction details only with compliance:read. - Authority notices: settings, herd snapshot, registration/herd change/TSK notices with one open draft per kind under the settings lock. - Label check refinements (geometric reading order, number|unit pairs). - ARCHITECTURE.md §12.6–12.8, Annahmen 71–77; spec §5.6 Berlin day. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
34 lines
986 B
TypeScript
34 lines
986 B
TypeScript
import {
|
|
describeNullContracts,
|
|
NullContract,
|
|
} from '../common/validation/null-contract.spec-helper';
|
|
import { UpdateAuthorityNoticeDto } from './dto/update-authority-notice.dto';
|
|
import { UpdateComplianceSettingsDto } from './dto/update-compliance-settings.dto';
|
|
|
|
const contracts: Record<string, NullContract> = {
|
|
UpdateComplianceSettingsDto: {
|
|
dto: UpdateComplianceSettingsDto,
|
|
notNull: [
|
|
'noticeOnColonyCountChange',
|
|
'noticeOnApiaryChange',
|
|
'tskReferenceDay',
|
|
'tskExcludedColonyTypes',
|
|
'netQuantityDigitRules',
|
|
],
|
|
clearable: [
|
|
'veterinaryOfficeName',
|
|
'veterinaryOfficeAddress',
|
|
'registrationNumber',
|
|
'tskReportDueDay',
|
|
'tskMemberNumber',
|
|
],
|
|
},
|
|
UpdateAuthorityNoticeDto: {
|
|
dto: UpdateAuthorityNoticeDto,
|
|
notNull: ['totalColonies', 'referenceDate'],
|
|
clearable: ['sentOn', 'sentVia', 'reference', 'notes'],
|
|
},
|
|
};
|
|
|
|
describeNullContracts('Compliance DTO null contracts', contracts);
|