@if (isLoading)
diff --git a/Lux.UI/Components/Pages/Offers.razor b/Lux.UI/Components/Pages/Offers.razor
index ade66fd..208a1be 100644
--- a/Lux.UI/Components/Pages/Offers.razor
+++ b/Lux.UI/Components/Pages/Offers.razor
@@ -119,7 +119,7 @@ else
@foreach (var item in Enum.GetNames(typeof(Enums.OfferStates)))
{
-
+
}
diff --git a/Lux.UI/Components/Pages/Offers.razor.cs b/Lux.UI/Components/Pages/Offers.razor.cs
index 4a4ec7a..e1761c6 100644
--- a/Lux.UI/Components/Pages/Offers.razor.cs
+++ b/Lux.UI/Components/Pages/Offers.razor.cs
@@ -216,9 +216,11 @@ namespace Lux.UI.Components.Pages
private void DoAdd()
{
+ int refNum = AllRecords.Where(x=>x.RefYear == DateTime.Today.Year).Max(x=>x.RefNum) + 1;
EditRecord = new OfferModel()
{
RefYear = DateTime.Today.Year,
+ RefNum = refNum,
Inserted = DateTime.Today,
Description = $"Nuova Offerta {DateTime.Today:ddd yyyy.MM.dd}",
ValidUntil = DateTime.Today.AddMonths(1)
diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj
index fa358f2..a9a1ce8 100644
--- a/Lux.UI/Lux.UI.csproj
+++ b/Lux.UI/Lux.UI.csproj
@@ -5,7 +5,7 @@
enable
enable
aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50
-
1.1.2606.0812
+
1.1.2606.0817
diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index 994a089..501b9ee 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
LUX - Web Windows MES
- Versione: 1.1.2606.0812
+ Versione: 1.1.2606.0817
Note di rilascio:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index e62de78..d6adb47 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-1.1.2606.0812
+1.1.2606.0817
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index 5abfc86..beae141 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 1.1.2606.0812
+ 1.1.2606.0817
http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip
http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html
false