diff --git a/EgwCoreLib.Lux.Data/DbModel/Sales/OfferModel.cs b/EgwCoreLib.Lux.Data/DbModel/Sales/OfferModel.cs index 8946177c..958802f0 100644 --- a/EgwCoreLib.Lux.Data/DbModel/Sales/OfferModel.cs +++ b/EgwCoreLib.Lux.Data/DbModel/Sales/OfferModel.cs @@ -96,7 +96,15 @@ namespace EgwCoreLib.Lux.Data.DbModel.Sales /// Numero Item compresi /// [NotMapped] - public int NumItems + public double NumItems + { + get => OfferRowNav?.Sum(x => x.Qty) ?? 0; + } + /// + /// Numero Item compresi + /// + [NotMapped] + public int NumRows { get => OfferRowNav?.Count ?? 0; } diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index 6b76318f..3bad659a 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.9.2510.2009 + 0.9.2510.2010 diff --git a/Lux.UI/Components/Compo/OfferRowMan.razor b/Lux.UI/Components/Compo/OfferRowMan.razor index 79230ac2..b792c67b 100644 --- a/Lux.UI/Components/Compo/OfferRowMan.razor +++ b/Lux.UI/Components/Compo/OfferRowMan.razor @@ -95,7 +95,14 @@ else @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) { - + @if (string.IsNullOrEmpty(item.SerStruct) || item.SerStruct.Length <= 2) + { + + } + else + { + + } } @@ -113,7 +120,7 @@ else @if (item.Envir != EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS.WINDOW || !string.IsNullOrEmpty(item.FileName)) {
- @if (EditFileRecord != null && EditFileRecord.OfferRowID == item.OfferRowID) + @if (EditRecord != null && EditRecord.OfferRowID == item.OfferRowID) { @@ -132,13 +139,11 @@ else {
- +
-
- -
+ } else @@ -167,14 +172,7 @@ else @if (!string.IsNullOrEmpty(item.ItemBOM)) { - if (CurrEditMode == EditMode.RecData && EditRecord != null && EditRecord.OfferRowID == item.OfferRowID) - { - - } - else - { - - } + } } @@ -226,7 +224,11 @@ else { } - @($"{GrandTotPrice:C2}") + + @($"{GrandTotPrice:C2}") + +
(@($"{GrandTotCost:C2}"))
+ @($"{GrandTotMargin:P2}") @if (DisplayMode == EgwCoreLib.Lux.Core.Enums.DisplayMode.Edit) { @@ -239,13 +241,13 @@ else
} -@if (showChangeMat && EditBomRecord != null) +@if (EditRecord != null && CurrEditMode== EditMode.BOM) {