diff --git a/Documents/Class1.cs b/Documents/Class1.cs new file mode 100644 index 0000000..9b9fce7 --- /dev/null +++ b/Documents/Class1.cs @@ -0,0 +1,7 @@ +namespace Documents +{ + public class Class1 + { + + } +} diff --git a/Documents/Documents.csproj b/Documents/Documents.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/Documents/Documents.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/Domain/Dtos/QuoteCustomer.cs b/Domain/Dtos/QuoteCustomer.cs new file mode 100644 index 0000000..468381c --- /dev/null +++ b/Domain/Dtos/QuoteCustomer.cs @@ -0,0 +1,12 @@ +namespace Domain.Dtos +{ + public class QuoteCustomerDto + { + public string Name { get; set; } = ""; + public string Cuit { get; set; } = ""; + public string IngresosBrutos { get; set; } = ""; + public string Address { get; set; } = ""; + public string IvaCondition { get; set; } = ""; + } + +} diff --git a/Domain/Dtos/QuoteDto.cs b/Domain/Dtos/QuoteDto.cs index b6d3737..5d663a3 100644 --- a/Domain/Dtos/QuoteDto.cs +++ b/Domain/Dtos/QuoteDto.cs @@ -1,4 +1,6 @@ -namespace Core.Dtos +using Domain.Dtos; + +namespace Core.Dtos { public class QuoteDto { @@ -81,5 +83,10 @@ /// Ajustes comerciales aplicados (descuentos o recargos). /// public List Adjustments { get; set; } = new(); + + /// + /// Datos comerciales del cliente. + /// + public QuoteCustomerDto Customer { get; set; } = new(); } } diff --git a/Transversal/Services/PuppeteerPdfGeneratorService.cs b/Transversal/Services/PuppeteerPdfGeneratorService.cs index 5b8670f..c3f0f87 100644 --- a/Transversal/Services/PuppeteerPdfGeneratorService.cs +++ b/Transversal/Services/PuppeteerPdfGeneratorService.cs @@ -18,6 +18,7 @@ namespace Transversal.Services _browser = Puppeteer.LaunchAsync(new LaunchOptions { Headless = true, + ExecutablePath = "/usr/bin/chromium", Args = new[] { "--no-sandbox", diff --git a/Transversal/obj/Transversal.csproj.nuget.g.props b/Transversal/obj/Transversal.csproj.nuget.g.props index d26955b..df8bb2d 100644 --- a/Transversal/obj/Transversal.csproj.nuget.g.props +++ b/Transversal/obj/Transversal.csproj.nuget.g.props @@ -7,7 +7,7 @@ $(UserProfile)\.nuget\packages\ C:\Users\maski\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages PackageReference - 6.13.1 + 6.13.2 diff --git a/phronCare.API/Dockerfile b/phronCare.API/Dockerfile index 4dbddae..5871c42 100644 --- a/phronCare.API/Dockerfile +++ b/phronCare.API/Dockerfile @@ -10,6 +10,16 @@ EXPOSE 8081 # Instalación de Node.js en la fase base (si lo necesitas para el contenedor final) #RUN apt-get update && apt-get install -y nodejs npm +# Instalación de Chromium y dependencias en la imagen base +RUN apt-get update && \ + apt-get install -y wget gnupg2 ca-certificates fonts-liberation libappindicator3-1 libasound2 \ + libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libnspr4 \ + libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils chromium && \ + rm -rf /var/lib/apt/lists/* + +ENV CHROME_BIN=/usr/bin/chromium + + # Esta fase se usa para compilar el proyecto de servicio #FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build diff --git a/phronCare.sln b/phronCare.sln index c7d6cf5..ec66ca9 100644 --- a/phronCare.sln +++ b/phronCare.sln @@ -39,6 +39,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.9 Services", "1.9 Service EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Services", "Services\Services.csproj", "{34FC5538-4779-41F5-8355-7866B1395A4F}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1.5 Documents", "1.5 Documents", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documents", "Documents\Documents.csproj", "{85E827F9-36AF-4E3D-83E5-5B5644AB044B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -77,6 +81,10 @@ Global {34FC5538-4779-41F5-8355-7866B1395A4F}.Debug|Any CPU.Build.0 = Debug|Any CPU {34FC5538-4779-41F5-8355-7866B1395A4F}.Release|Any CPU.ActiveCfg = Release|Any CPU {34FC5538-4779-41F5-8355-7866B1395A4F}.Release|Any CPU.Build.0 = Release|Any CPU + {85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85E827F9-36AF-4E3D-83E5-5B5644AB044B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -94,6 +102,8 @@ Global {8A7FB2B3-E208-4237-B4E5-9DDF69D4FD05} = {0A1CFFA9-E7E9-47B7-B494-F37A71A53C7F} {13328F60-28A6-446D-9935-23866F3F3D9D} = {74280C0B-F2CC-4A3E-86D6-05530F9766D5} {34FC5538-4779-41F5-8355-7866B1395A4F} = {13328F60-28A6-446D-9935-23866F3F3D9D} + {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {74280C0B-F2CC-4A3E-86D6-05530F9766D5} + {85E827F9-36AF-4E3D-83E5-5B5644AB044B} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {92DE3FEB-7D7E-4C78-BE8C-34931CA1DAED}