DeliveryConfirmation: Add user editable Text
This commit is contained in:
@ -58,6 +58,7 @@ namespace Elwig.Helpers {
|
||||
public int ModeDeliveryNoteStats;
|
||||
|
||||
public string? TextDeliveryNote;
|
||||
public string? TextDeliveryConfirmation;
|
||||
|
||||
public ClientParameters(AppDbContext ctx) : this(ctx.ClientParameters.ToDictionary(e => e.Param, e => e.Value)) { }
|
||||
|
||||
@ -100,6 +101,9 @@ namespace Elwig.Helpers {
|
||||
|
||||
Sender2 = parameters.GetValueOrDefault("DOCUMENT_SENDER") ?? "";
|
||||
TextDeliveryNote = parameters.GetValueOrDefault("TEXT_DELIVERYNOTE");
|
||||
if (TextDeliveryNote == "") TextDeliveryNote = null;
|
||||
TextDeliveryConfirmation = parameters.GetValueOrDefault("TEXT_DELIVERYCONFIRMATION");
|
||||
if (TextDeliveryConfirmation == "") TextDeliveryConfirmation = null;
|
||||
} catch {
|
||||
throw new KeyNotFoundException();
|
||||
}
|
||||
@ -138,6 +142,7 @@ namespace Elwig.Helpers {
|
||||
("MODE_DELIVERYNOTE_STATS", deliveryNoteStats),
|
||||
("DOCUMENT_SENDER", Sender2),
|
||||
("TEXT_DELIVERYNOTE", TextDeliveryNote),
|
||||
("TEXT_DELIVERYCONFIRMATION", TextDeliveryConfirmation),
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user