PaymentVariantsWindow: Add possibility to switch options on/off

This commit is contained in:
2024-01-17 14:57:45 +01:00
parent 38ad433b4e
commit 9eb013ce11
10 changed files with 242 additions and 34 deletions

View File

@ -136,6 +136,10 @@
}
penalty = Math.Round(penalty, 2, MidpointRounding.AwayFromZero);
}
@if (Model.MemberTotalUnderDelivery != 0) {
@Raw(FormatRow("Unterlieferung (GA)", Model.MemberTotalUnderDelivery, add: true));
penalty += Math.Round(Model.MemberTotalUnderDelivery, 2, MidpointRounding.AwayFromZero);
}
@if (Model.Credit == null) {
@Raw(FormatRow("Auszahlungsbetrag", (Model.Payment?.Amount + penalty) ?? (sum + penalty), bold: true))