Skip to content

Commit

Permalink
#84 - Introduce new setting to oexclude miscellaneous fees when check…
Browse files Browse the repository at this point in the history
…ing for penalty.
  • Loading branch information
roam915 committed Jul 26, 2021
1 parent 492ee54 commit 808333e
Show file tree
Hide file tree
Showing 23 changed files with 1,974 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public async Task GenerateAccountStatementPenalties(int contractId)
// Check of the penalty setting is active.
if (!accountStatement.IsPenaltySettingActive) continue;

// Only generate penalties if it valid to do so.
// Only generate penalties if it is valid to do so.
while (accountStatement.IsValidForGeneratingPenalty)
{
var newPenaltyItem = RegisterNewPenaltyItem(accountStatement);
Expand Down
3 changes: 1 addition & 2 deletions ReserbizAPP.LIB/Dtos/TermDetailDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public class TermDetailDto
public int GenerateAccountStatementDaysBeforeValue { get; set; }

public MiscellaneousDueDateEnum MiscellaneousDueDate { get; set; }


public bool IncludeMiscellaneousCheckAndCalculateForPenalty { get; set; }
public List<TermMiscellaneousDetailDto> TermMiscellaneous { get; set; }
}
}
3 changes: 3 additions & 0 deletions ReserbizAPP.LIB/Dtos/TermForCreationDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public class TermForManageDto
[Required]
public MiscellaneousDueDateEnum MiscellaneousDueDate { get; set; }

[Required]
public bool IncludeMiscellaneousCheckAndCalculateForPenalty { get; set; }

public List<TermMiscellaneousManageDto> TermMiscellaneous { get; set; }
public List<TermMiscellaneousManageDto> DeletedTermMiscellaneous { get; set; }
}
Expand Down
2 changes: 2 additions & 0 deletions ReserbizAPP.LIB/Dtos/TermForUpdateDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public class TermForUpdateDto

[Required]
public MiscellaneousDueDateEnum MiscellaneousDueDate { get; set; }
[Required]
public bool IncludeMiscellaneousCheckAndCalculateForPenalty { get; set; }

}
}
Loading

0 comments on commit 808333e

Please sign in to comment.