BUG: Fehler wird in bestimmten Fällen nicht gespeichert

This commit is contained in:
2024-12-06 13:18:24 +01:00
parent f0c15c8882
commit 03cc2e0694

View File

@@ -929,15 +929,15 @@ namespace BeWo.Service.ServiceImplementations
GkvAbrechnungOid = entity.Oid.Value
};
try
{
CreateGkvTransferProtokoll(oid, entity, protokoll);
if (entity.GkvTransferProtokolle is null)
entity.GkvTransferProtokolle = new List<GkvTransferProtokoll>();
entity.GkvTransferProtokolle.Add(protokoll);
try
{
CreateGkvTransferProtokoll(oid, entity, protokoll);
// Protokoll braucht Oid
DAOFactory.GenericDAO.Update(entity);