phronCare/Domain/Dtos/QuoteItemDto.cs
leandro 2d652c89c8
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (pull_request) Successful in 4m44s
feat(sales): exponer aprobación por ítem en QuoteDto para precarga documental.
Incluye arreglo en lookup para traer presupuestos aprobados en lugar de emitidos.
Closes #33
2026-03-22 18:05:56 -03:00

61 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Domain.Dtos
{
public class QuoteItemDto
{
/// <summary>
/// Identificador único del ítem dentro del presupuesto.
/// </summary>
public int Id { get; set; }
/// <summary>
/// Descripción del producto o servicio cotizado.
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// Cantidad de unidades cotizadas.
/// </summary>
public int Quantity { get; set; }
/// <summary>
/// Precio unitario sin incluir impuestos.
/// </summary>
public decimal UnitPrice { get; set; }
/// <summary>
/// Subtotal (Quantity × UnitPrice).
/// </summary>
public decimal Subtotal { get; set; }
/// <summary>
/// Importe de impuestos aplicados al ítem.
/// </summary>
public decimal TaxAmount { get; set; }
/// <summary>
/// Total del ítem (Subtotal + TaxAmount).
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Indica si el renglón fue aprobado durante el proceso de autorización.
/// </summary>
public bool Approved { get; set; }
/// <summary>
/// Cantidad aprobada para el renglón. Puede diferir de la cantidad originalmente cotizada.
/// </summary>
public int? ApprovedQuantity { get; set; }
/// <summary>
/// Precio unitario aprobado para el renglón.
/// </summary>
public decimal? ApprovedUnitPrice { get; set; }
/// <summary>
/// Importe total aprobado para el renglón.
/// </summary>
public decimal? ApprovedAmount { get; set; }
}
}