Update DELIVERY_NOTE_TEXT to TEXT_DELIVERY_NOTE

This commit is contained in:
2023-08-31 22:36:53 +02:00
parent 4817a2aedc
commit effc9f9230
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace Elwig.Documents {
$"<tr><th>Datum/Zeit</th><td>{d.Date:dd.MM.yyyy} / {d.Time:HH:mm}</td></tr>" + $"<tr><th>Datum/Zeit</th><td>{d.Date:dd.MM.yyyy} / {d.Time:HH:mm}</td></tr>" +
$"<tr><th>Zweigstelle</th><td>{d.Branch.Name}</td></tr>" + $"<tr><th>Zweigstelle</th><td>{d.Branch.Name}</td></tr>" +
$"</tbody></table>"; $"</tbody></table>";
Text = App.Client.DeliveryNoteText; Text = App.Client.TextDeliveryNote;
DocumentId = d.LsNr; DocumentId = d.LsNr;
MemberBuckets = ctx.GetMemberBuckets(d.Member, d.Year).GetAwaiter().GetResult(); MemberBuckets = ctx.GetMemberBuckets(d.Member, d.Year).GetAwaiter().GetResult();
} }

View File

@ -44,7 +44,7 @@ namespace Elwig.Helpers {
public int DeliveryObligation; public int DeliveryObligation;
public int DeliveryRight; public int DeliveryRight;
public string? DeliveryNoteText; public string? TextDeliveryNote;
public ClientParameters(AppDbContext ctx) : this(ctx.ClientParameters.ToDictionary(e => e.Param, e => e.Value)) { } public ClientParameters(AppDbContext ctx) : this(ctx.ClientParameters.ToDictionary(e => e.Param, e => e.Value)) { }
@ -77,7 +77,7 @@ namespace Elwig.Helpers {
DeliveryObligation = int.Parse(parameters["DELIVERY_OBLIGATION"] ?? ""); DeliveryObligation = int.Parse(parameters["DELIVERY_OBLIGATION"] ?? "");
DeliveryRight = int.Parse(parameters["DELIVERY_RIGHT"] ?? ""); DeliveryRight = int.Parse(parameters["DELIVERY_RIGHT"] ?? "");
DeliveryNoteText = parameters.GetValueOrDefault("DELIVERY_NOTE_TEXT"); TextDeliveryNote = parameters.GetValueOrDefault("TEXT_DELIVERY_NOTE");
} catch { } catch {
throw new KeyNotFoundException(); throw new KeyNotFoundException();
} }