diff --git a/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor b/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor index cc73a84..aee1d14 100644 --- a/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor +++ b/phronCare.UIBlazor/Pages/Sales/Quotes/Quotes.razor @@ -7,12 +7,14 @@ @inject QuoteService quoteService @inject IToastService toastService -
-
-

Consulta de Presupuestos

+
+
+
+

Consulta de Presupuestos

+
-
+
@@ -55,7 +57,7 @@
-
+
@@ -67,228 +69,231 @@
-
- +
+
+
+
- @if (PagedQuotes?.Items?.Any() == true) - { - - - - - - - - - - - - - - - - - - - +
QuotenumberEmisiónEstimadaClienteMédicoHospitalPacienteUnidadMonedaTotalEstadoVendedorAcciones
+ + + + + + + + + + + + + + + + + + + @if (PagedQuotes?.Items?.Any() == true) + { @foreach (var quote in PagedQuotes.Items) { - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + } - -
QuotenumberEmisiónEstimadaClienteMédicoHospitalPacienteUnidadMonedaTotalEstadoVendedorAcciones
@quote.Quotenumber@quote.IssueDate.ToString("dd/MM/yyyy")@(quote.EstimatedDate.HasValue ? quote.EstimatedDate.Value.ToString("dd/MM/yyyy") : "—")@quote.CustomerName@quote.ProfessionalName@quote.InstitutionName@quote.PatientName@quote.BusinessUnitName@quote.Currency@string.Format("{0:N2}", quote.Total) - @quote.Status - @quote.SalespersonName - - - @if (quote.Status?.ToLower() == "emitido") - { - - } -
@quote.Quotenumber@quote.IssueDate.ToString("dd/MM/yyyy")@(quote.EstimatedDate.HasValue ? quote.EstimatedDate.Value.ToString("dd/MM/yyyy") : "—")@quote.CustomerName@quote.ProfessionalName@quote.InstitutionName@quote.PatientName@quote.BusinessUnitName@quote.Currency@string.Format("{0:N2}", quote.Total) + @quote.Status + @quote.SalespersonName + + + @if (quote.Status?.ToLower() == "emitido") + { + + } +
- @if (SelectedQuote != null) - { - -
- -
- -
-
Detalle Presupuesto @SelectedQuote?.Quotenumber
- -
- -
- - - @if (activeTab == "Datos") - { -
-
Cliente:
-
@SelectedQuote?.CustomerName
-
Médico:
-
@SelectedQuote?.ProfessionalName
-
Hospital:
-
@SelectedQuote?.InstitutionName
-
Paciente:
-
@SelectedQuote?.PatientName
-
Emisión:
-
@SelectedQuote?.IssueDate.ToString("dd/MM/yyyy")
-
Estimada:
-
@SelectedQuote?.EstimatedDate?.ToString("dd/MM/yyyy")
-
Unidad Negocio:
-
@SelectedQuote?.BusinessUnitName
-
Moneda:
-
@SelectedQuote?.Currency
-
Vendedor:
-
@SelectedQuote?.SalespersonName
-
Estado:
-
- @SelectedQuote?.Status -
-
Observaciones:
-
SN
-
- } - else if (activeTab == "Items") - { - if (SelectedQuote?.Items == null || !SelectedQuote.Items.Any()) - { -

No hay productos en este presupuesto.

- } - else - { -
Productos cotizados
- - - - - - - - - - - @foreach (var item in SelectedQuote.Items) - { - - - - - - - } - -
DescripciónCant.Precio U.Subtotal
@item.Description@item.Quantity@string.Format("{0:N2}", item.UnitPrice)@string.Format("{0:N2}", item.Quantity * item.UnitPrice)
- } - - if (SelectedQuote?.Taxes != null && SelectedQuote.Taxes.Any()) - { -
-
Impuestos aplicados
- - - - - - - - - - - @foreach (var tax in SelectedQuote.Taxes) - { - - - - - - - } - -
ImpuestoCódigoPorcentajeImporte
@tax.TaxName@tax.TaxCode@string.Format("{0:N2}%", tax.TaxRate)@string.Format("{0:N2}", tax.TaxAmount)
- } - } -
-
- } - } - else if (IsLoading) - { -

Cargando...

- } - else - { -

No hay resultados.

- } + } + else if (IsLoading) + { + Cargando... + } + else + { + Sin resultados + } + +
- - -
+@if (SelectedQuote != null) +{ + +
+ +
+ +
+
Detalle Presupuesto @SelectedQuote?.Quotenumber
+ +
+ +
+ + + @if (activeTab == "Datos") + { +
+
Cliente:
+
@SelectedQuote?.CustomerName
+
Médico:
+
@SelectedQuote?.ProfessionalName
+
Hospital:
+
@SelectedQuote?.InstitutionName
+
Paciente:
+
@SelectedQuote?.PatientName
+
Emisión:
+
@SelectedQuote?.IssueDate.ToString("dd/MM/yyyy")
+
Estimada:
+
@SelectedQuote?.EstimatedDate?.ToString("dd/MM/yyyy")
+
Unidad Negocio:
+
@SelectedQuote?.BusinessUnitName
+
Moneda:
+
@SelectedQuote?.Currency
+
Vendedor:
+
@SelectedQuote?.SalespersonName
+
Estado:
+
+ @SelectedQuote?.Status +
+
Observaciones:
+
SN
+
+ } + else if (activeTab == "Items") + { + if (SelectedQuote?.Items == null || !SelectedQuote.Items.Any()) + { +

No hay productos en este presupuesto.

+ } + else + { +
Productos cotizados
+ + + + + + + + + + + @foreach (var item in SelectedQuote.Items) + { + + + + + + + } + +
DescripciónCant.Precio U.Subtotal
@item.Description@item.Quantity@string.Format("{0:N2}", item.UnitPrice)@string.Format("{0:N2}", item.Quantity * item.UnitPrice)
+ } + + if (SelectedQuote?.Taxes != null && SelectedQuote.Taxes.Any()) + { +
+
Impuestos aplicados
+ + + + + + + + + + + @foreach (var tax in SelectedQuote.Taxes) + { + + + + + + + } + +
ImpuestoCódigoPorcentajeImporte
@tax.TaxName@tax.TaxCode@string.Format("{0:N2}%", tax.TaxRate)@string.Format("{0:N2}", tax.TaxAmount)
+ } + } +
+
+} + + @code { private QuoteSearchParams Filters = new() { PageSize = 9 }; private PagedResult? PagedQuotes; diff --git a/phronCare.UIBlazor/Pages/Stock/Expeditions/Expeditions.razor b/phronCare.UIBlazor/Pages/Stock/Expeditions/Expeditions.razor index 692195e..8536f43 100644 --- a/phronCare.UIBlazor/Pages/Stock/Expeditions/Expeditions.razor +++ b/phronCare.UIBlazor/Pages/Stock/Expeditions/Expeditions.razor @@ -129,7 +129,7 @@ } else { - Sin resultados + Sin resultados }