DeliveryAdminWindow: Fix LNr calculation for new deliveries
This commit is contained in:
@ -560,7 +560,7 @@ namespace Elwig.Windows {
|
||||
p.DPNr = dpnr;
|
||||
|
||||
d.DateString = string.Join("-", DateInput.Text.Split(".").Reverse());
|
||||
if (IsCreating || InputHasChanged(DateInput)) {
|
||||
if (deliveryNew || InputHasChanged(DateInput)) {
|
||||
d.LNr = await Context.NextLNr(d.Date);
|
||||
}
|
||||
if (IsCreating) {
|
||||
|
Reference in New Issue
Block a user