app8
This commit is contained in:
@@ -492,13 +492,13 @@ namespace BeWo.Service.ServiceImplementations
|
||||
var state = gkvAbrechnung.GetState();
|
||||
|
||||
if (state == GkvState.NoSend)
|
||||
{
|
||||
newDatenaustauschref = false;
|
||||
}
|
||||
else if (state == GkvState.ErrorSoft || state == GkvState.ErrorFatal || state == GkvState.ErrorFolgefehler)
|
||||
{
|
||||
newDatenaustauschref = true;
|
||||
}
|
||||
else if (state == GkvState.ErrorSoft || state == GkvState.ErrorFatal)
|
||||
{
|
||||
newDatenaustauschref = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentException($"Versucht Transfernummer zu laden, invalid state: {state}", nameof(state));
|
||||
@@ -651,9 +651,6 @@ namespace BeWo.Service.ServiceImplementations
|
||||
case GkvTransferResultType.FailFatal:
|
||||
protokoll.SentApp8Success = false;
|
||||
break;
|
||||
case GkvTransferResultType.FailFollowUp:
|
||||
protokoll.SentApp8Success = false;
|
||||
break;
|
||||
}
|
||||
|
||||
protokolls.Add(protokoll);
|
||||
@@ -661,27 +658,6 @@ namespace BeWo.Service.ServiceImplementations
|
||||
|
||||
if (protokolls.Any())
|
||||
DAOFactory.GenericDAO.Update(protokolls);
|
||||
|
||||
var follows = results.Where(x => x.ResultType == GkvTransferResultType.FailFollowUp);
|
||||
|
||||
if (follows.Any())
|
||||
{
|
||||
foreach (var follow in follows)
|
||||
{
|
||||
var protokoll_oid = follow.ProtokollOid;
|
||||
var abrechnung_oid = DAOFactory.FinanceDAO.GetGkvParentByProtokollOid(protokoll_oid);
|
||||
|
||||
var new_req = new GkvAbrechnungSendRequestDC()
|
||||
{
|
||||
GkvAbrechnungOid = abrechnung_oid
|
||||
};
|
||||
|
||||
var res = SendNewGkvAbrechnung(new_req);
|
||||
|
||||
if (!res.Success)
|
||||
throw new GkvException("Success - " + res.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Res SendApp8Request<Req, Res>(Req request) where Req : GkvServerRequestDC where Res : GkvResponseDC
|
||||
|
||||
Reference in New Issue
Block a user