[#62] CreditNote: Add longer custom text to bottom
All checks were successful
Test / Run tests (push) Successful in 1m53s
All checks were successful
Test / Run tests (push) Successful in 1m53s
This commit is contained in:
@ -136,7 +136,10 @@
|
|||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
<tbody style="break-inside: avoid;">
|
<tbody style="break-inside: avoid;">
|
||||||
@{ decimal penalty = 0; }
|
@{
|
||||||
|
decimal penalty = 0;
|
||||||
|
string? comment = null;
|
||||||
|
}
|
||||||
|
|
||||||
@if (Model.MemberUnderDeliveries != null && Model.MemberUnderDeliveries.Count() > 0) {
|
@if (Model.MemberUnderDeliveries != null && Model.MemberUnderDeliveries.Count() > 0) {
|
||||||
<tr class="small">
|
<tr class="small">
|
||||||
@ -158,7 +161,13 @@
|
|||||||
penalty += Model.MemberAutoBusinessSharesAmount;
|
penalty += Model.MemberAutoBusinessSharesAmount;
|
||||||
}
|
}
|
||||||
@if (Model.CustomPayment?.Amount != null) {
|
@if (Model.CustomPayment?.Amount != null) {
|
||||||
@Raw(FormatRow(Model.CustomPayment.Comment ?? ((Model.CustomPayment.Amount.Value) < 0 ? "Weitere Abzüge" : "Weitere Zuschläge"), Model.CustomPayment.Amount.Value, add: true));
|
comment = Model.CustomPayment.Comment;
|
||||||
|
string text = (Model.CustomPayment.Amount.Value < 0 ? "Weitere Abzüge" : "Weitere Zuschläge") + (comment != null ? "*" : "");
|
||||||
|
if (comment != null && comment!.Length <= 30) {
|
||||||
|
text = comment;
|
||||||
|
comment = null;
|
||||||
|
}
|
||||||
|
@Raw(FormatRow(text, Model.CustomPayment.Amount.Value, add: true));
|
||||||
penalty += Model.CustomPayment.Amount.Value;
|
penalty += Model.CustomPayment.Amount.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,6 +185,9 @@
|
|||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@if (comment != null) {
|
||||||
|
<p>* @comment</p>
|
||||||
|
}
|
||||||
<p>Überweisung erfolgt auf Konto @(Elwig.Helpers.Utils.FormatIban(Model.Member.Iban ?? "-")).</p>
|
<p>Überweisung erfolgt auf Konto @(Elwig.Helpers.Utils.FormatIban(Model.Member.Iban ?? "-")).</p>
|
||||||
<div style="margin-top: 1em;">
|
<div style="margin-top: 1em;">
|
||||||
@if (Model.Text != null) {
|
@if (Model.Text != null) {
|
||||||
|
Reference in New Issue
Block a user