Fix ods export with doubles

This commit is contained in:
2024-01-17 12:10:11 +01:00
parent 0a60f01979
commit 38ad433b4e
2 changed files with 2 additions and 3 deletions

View File

@ -71,6 +71,6 @@ namespace Elwig.Models.Dtos {
[NotMapped]
public (int? Kg, double? Percent) OverUnderDelivery =>
Weight < DeliveryObligation ? (Weight - DeliveryObligation, Weight * 100.0 / DeliveryObligation - 100.0) :
Weight > DeliveryRight ? (Weight - DeliveryRight, Weight * 100.0 / DeliveryRight - 100) : (null, null);
Weight > DeliveryRight ? (Weight - DeliveryRight, Weight * 100.0 / DeliveryRight - 100.0) : (null, null);
}
}