Skip to content

Commit

Permalink
commented out decisions as its not ready yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Anderson committed Dec 16, 2024
1 parent 2bfae18 commit 10d6728
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Btms.Business/Services/Decisions/DecisionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ private static Task<DecisionResult> DeriveDecision(DecisionContext decisionConte
}
}

foreach (var match in decisionContext.MatchingResult.Matches)
{
var n = decisionContext.Notifications.First(x => x.Id == match.NotificationId);
var decisionCode = GetDecision(n);
decisionsResult.AddDecision(match.MovementId, match.ItemNumber, match.DocumentReference, decisionCode.DecisionCode);
}
////Not part of no matches, and the finders haven't been implemented yet, so leaving this commented out for the moment
////foreach (var match in decisionContext.MatchingResult.Matches)
////{
//// var n = decisionContext.Notifications.First(x => x.Id == match.NotificationId);
//// var decisionCode = GetDecision(n);
//// decisionsResult.AddDecision(match.MovementId, match.ItemNumber, match.DocumentReference, decisionCode.DecisionCode);
////}

return Task.FromResult(decisionsResult);
}


#pragma warning disable S1144
private static DecisionFinderResult GetDecision(ImportNotification notification)
#pragma warning restore S1144
{
// get decision finder - fold IUU stuff into the decision finder for fish?
IDecisionFinder finder = notification.ImportNotificationType switch
Expand Down

0 comments on commit 10d6728

Please sign in to comment.