diff --git a/PointOfSale/EpsonPrinterLinux/EpsonPrinter.csproj b/PointOfSale/EpsonPrinterLinux/EpsonPrinter.csproj index 6dc1440..b4ebe61 100644 --- a/PointOfSale/EpsonPrinterLinux/EpsonPrinter.csproj +++ b/PointOfSale/EpsonPrinterLinux/EpsonPrinter.csproj @@ -20,4 +20,8 @@ - \ No newline at end of file + + + + + diff --git a/PointOfSale/EpsonPrinterLinux/Program.cs b/PointOfSale/EpsonPrinterLinux/Program.cs index c554603..e22989e 100644 --- a/PointOfSale/EpsonPrinterLinux/Program.cs +++ b/PointOfSale/EpsonPrinterLinux/Program.cs @@ -4,6 +4,8 @@ using Microsoft.Extensions.DependencyInjection; var builder = WebApplication.CreateBuilder(args); +builder.AddServiceDefaults(); + // Services builder.Services.AddControllers(); builder.Services.AddEndpointsApiExplorer(); @@ -13,6 +15,8 @@ builder.Services.AddScoped(); var app = builder.Build(); +app.MapDefaultEndpoints(); + // Swagger (altid aktiv – vi er på en Pi, ikke i produktion) app.UseSwagger(); app.UseSwaggerUI(); diff --git a/PointOfSale/EpsonPrinterLinux/Properties/launchSettings.json b/PointOfSale/EpsonPrinterLinux/Properties/launchSettings.json index 896e040..ca64888 100644 --- a/PointOfSale/EpsonPrinterLinux/Properties/launchSettings.json +++ b/PointOfSale/EpsonPrinterLinux/Properties/launchSettings.json @@ -19,7 +19,7 @@ }, "EpsonPrinter": { "commandName": "Project", - "dotnetRunMessages": "true", + "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", "applicationUrl": "https://localhost:5001;http://localhost:5000", diff --git a/PointOfSale/EpsonPrinterLinux/printer-output.bin b/PointOfSale/EpsonPrinterLinux/printer-output.bin index d12f395..640237f 100644 Binary files a/PointOfSale/EpsonPrinterLinux/printer-output.bin and b/PointOfSale/EpsonPrinterLinux/printer-output.bin differ diff --git a/PointOfSale/EpsonPrinterLinux/printer-preview.txt b/PointOfSale/EpsonPrinterLinux/printer-preview.txt index 923d646..48e0a7a 100644 --- a/PointOfSale/EpsonPrinterLinux/printer-preview.txt +++ b/PointOfSale/EpsonPrinterLinux/printer-preview.txt @@ -10,3 +10,9 @@ Buket..............1 á 50,50 DKK : 50,50 DKK Total: 50,50 DKK Moms udgør 25% : 12,63 DKK Tak for handlen +Dato: 30-07-2026 +----------------------------------- +string : .00 +----------------------------------- +Total salg: .00 +Antal kunder: 0 diff --git a/PointOfSale/Pos.AppHost/AppHost.cs b/PointOfSale/Pos.AppHost/AppHost.cs index cd47a24..d60e218 100644 --- a/PointOfSale/Pos.AppHost/AppHost.cs +++ b/PointOfSale/Pos.AppHost/AppHost.cs @@ -1,5 +1,11 @@ var builder = DistributedApplication.CreateBuilder(args); -builder.AddProject("database"); +var epsonPrinter = + builder.AddProject("epsonprinter"); + +builder + .AddProject("pos-web") + .WithReference(epsonPrinter) + .WaitFor(epsonPrinter); builder.Build().Run(); diff --git a/PointOfSale/Pos.AppHost/Pos.AppHost.csproj b/PointOfSale/Pos.AppHost/Pos.AppHost.csproj index c20c6bc..a77b70f 100644 --- a/PointOfSale/Pos.AppHost/Pos.AppHost.csproj +++ b/PointOfSale/Pos.AppHost/Pos.AppHost.csproj @@ -9,7 +9,8 @@ - + + diff --git a/PointOfSale/Pos.ServiceDefaults/Pos.ServiceDefaults.csproj b/PointOfSale/Pos.ServiceDefaults/Pos.ServiceDefaults.csproj index 4502460..fc87607 100644 --- a/PointOfSale/Pos.ServiceDefaults/Pos.ServiceDefaults.csproj +++ b/PointOfSale/Pos.ServiceDefaults/Pos.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net10.0 + net8.0;net10.0 enable enable true diff --git a/PointOfSale/Pos.Web/Pos.Web.csproj b/PointOfSale/Pos.Web/Pos.Web.csproj index ad67690..c50744c 100644 --- a/PointOfSale/Pos.Web/Pos.Web.csproj +++ b/PointOfSale/Pos.Web/Pos.Web.csproj @@ -11,4 +11,8 @@ + + + + diff --git a/PointOfSale/Pos.Web/Program.cs b/PointOfSale/Pos.Web/Program.cs index fc06f31..8888009 100644 --- a/PointOfSale/Pos.Web/Program.cs +++ b/PointOfSale/Pos.Web/Program.cs @@ -3,6 +3,8 @@ using Pos.Web.Components; var builder = WebApplication.CreateBuilder(args); +builder.AddServiceDefaults(); + // Add services to the container. builder.Services.AddRazorComponents() .AddInteractiveServerComponents(); @@ -10,6 +12,8 @@ builder.Services.AddFluentUIComponents(); var app = builder.Build(); +app.MapDefaultEndpoints(); + // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { diff --git a/layout/DagensSalg.png b/layout/DagensSalg.png new file mode 100644 index 0000000..b31e41f Binary files /dev/null and b/layout/DagensSalg.png differ diff --git a/layout/Forside.png b/layout/Forside.png new file mode 100644 index 0000000..6b1025f Binary files /dev/null and b/layout/Forside.png differ diff --git a/layout/Indstillinger.png b/layout/Indstillinger.png new file mode 100644 index 0000000..636e5f5 Binary files /dev/null and b/layout/Indstillinger.png differ diff --git a/layout/Indstillinger/Medarbejder.png b/layout/Indstillinger/Medarbejder.png new file mode 100644 index 0000000..09aef1c Binary files /dev/null and b/layout/Indstillinger/Medarbejder.png differ diff --git a/layout/Indstillinger/OpretMedarbejder.png b/layout/Indstillinger/OpretMedarbejder.png new file mode 100644 index 0000000..b8630bb Binary files /dev/null and b/layout/Indstillinger/OpretMedarbejder.png differ diff --git a/layout/Indstillinger/Vare.png b/layout/Indstillinger/Vare.png new file mode 100644 index 0000000..5ac1bf5 Binary files /dev/null and b/layout/Indstillinger/Vare.png differ diff --git a/layout/PrintBon.png b/layout/PrintBon.png new file mode 100644 index 0000000..24a1424 Binary files /dev/null and b/layout/PrintBon.png differ diff --git a/layout/Salg/Betaling.png b/layout/Salg/Betaling.png new file mode 100644 index 0000000..55722fe Binary files /dev/null and b/layout/Salg/Betaling.png differ diff --git a/layout/Salg/BetalingByttepenge.png b/layout/Salg/BetalingByttepenge.png new file mode 100644 index 0000000..18f25f2 Binary files /dev/null and b/layout/Salg/BetalingByttepenge.png differ