From c27c5696435dc7bcd0b759e56e26319e8f8336f6 Mon Sep 17 00:00:00 2001 From: Leandro Hernan Rojas Date: Fri, 16 May 2025 12:28:14 -0300 Subject: [PATCH] Update Template Quote --- Documents/Templates/Quotes/Template_v1.cshtml | 252 +++++++++--------- 1 file changed, 120 insertions(+), 132 deletions(-) diff --git a/Documents/Templates/Quotes/Template_v1.cshtml b/Documents/Templates/Quotes/Template_v1.cshtml index 43ec227..22f3036 100644 --- a/Documents/Templates/Quotes/Template_v1.cshtml +++ b/Documents/Templates/Quotes/Template_v1.cshtml @@ -7,37 +7,14 @@ - Presupuesto N° @Model.Quotenumber + Presupuesto @Model.Quotenumber -

@System.Text.Encoding.Default.EncodingName

- -
-

TEST EXTENDIDO DE FUENTES Y ACENTOS

-

Texto de prueba: á é í ó ú ñ Ñ ¿ ¡ — Información técnica – José Rodríguez

- -

- DejaVu Sans:
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

- -

- DejaVu Sans Mono:
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

- -

- Liberation Sans:
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

- -

- Liberation Serif:
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

- -

- Arial (si disponible):
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

- -

- Times New Roman (si disponible):
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

- -

- Sans-serif genérica (último fallback):
- á é í ó ú ñ Ñ ¿ ¡ – Información técnica – José Rodríguez -

-
-

N° @Model.Quotenumber

-

Fecha de Emisión: @Model.IssueDate.ToString("dd/MM/yyyy")

+
+

phronCare - Presupuesto

+

Número: @Model.Quotenumber

+

Fecha de Emisión: @Model.IssueDate.ToString("dd/MM/yyyy")

-
-

Datos del Cliente

-

Razón Social: @Model.CustomerName

-

Paciente: @Model.PatientName

-

Médico: @Model.ProfessionalName

-

Institución: @Model.InstitutionName

-
+

Datos del Cliente

+ + + + + + +
Razón Social@Model.CustomerName
Paciente@Model.PatientName
Médico@Model.ProfessionalName
Institución@Model.InstitutionName
Fecha estimada cirugía@(Model.EstimatedDate?.ToString("dd/MM/yyyy") ?? "-")
-
-

Productos Cotizados

- - +

Productos Cotizados

+
+ + + + + + + + + + @foreach (var item in Model.Items) + { - - - - + + + + - - - @foreach (var item in Model.Items) - { - - - - - - - } - -
CantidadDescripciónPrecio Unitario (@Model.Currency)Total (@Model.Currency)
CantidadDescripciónPrecio Unitario (@Model.Currency)Total (@Model.Currency)@item.Quantity@item.Description@item.UnitPrice.ToString("C", culture)@item.Total.ToString("C", culture)
@item.Quantity@item.Description@item.UnitPrice.ToString("C", culture)@item.Total.ToString("C", culture)
-
+ } + + -
-

Totales

- - +

Totales

+
+ + + + + @if (Model.Taxes?.Any() == true) + { + foreach (var tax in Model.Taxes) + { - - + + - @if (Model.Taxes != null && Model.Taxes.Any()) - { - foreach (var tax in Model.Taxes) - { - - - - - } - } - @if (Model.Adjustments != null && Model.Adjustments.Any()) - { - foreach (var adj in Model.Adjustments) - { - - - - - } - } + } + } + @if (Model.Adjustments?.Any() == true) + { + foreach (var adj in Model.Adjustments) + { - - + + - -
Subtotal:@Model.Items.Sum(i => i.Subtotal).ToString("C", culture)
Subtotal@Model.Items.Sum(i => i.Subtotal).ToString("C", culture)@tax.TaxName (@tax.TaxRate%)@tax.TaxAmount.ToString("C", culture)
@tax.TaxName (@tax.TaxRate%)@tax.TaxAmount.ToString("C", culture)
Ajuste: @adj.Reason@adj.Amount.ToString("C", culture)
Total Final@Model.Total.ToString("C", culture)Ajuste: @adj.Reason@adj.Amount.ToString("C", culture)
+ } + } + + Total Final: + @Model.Total.ToString("C", culture) + + + +

Observaciones

+
+ @Model.Observations