phronCare/Domain/Dtos/Sales/DeliveryNoteDto.cs
leandro 33fe012b09
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (pull_request) Successful in 18m57s
feat(sales): incorporar DTO de lectura para Delivery Note #23
- Se agregan DeliveryNoteDto y DeliveryNoteItemDto
- Se implementa proyección a DTO en PhSDeliveryNoteRepository
- Se extiende IPhSDeliveryNoteRepository con métodos DTO
- Se ajusta DeliveryNoteService para trabajar con DTO
- Se actualiza DeliveryNoteController para devolver DTO
- Se elimina exposición directa de EDeliveryNote en la API

Closes #23
2026-03-19 17:41:49 -03:00

27 lines
936 B
C#

using System;
using System.Collections.Generic;
namespace Domain.Dtos.Sales
{
/// <summary>
/// DTO de lectura para Delivery Note.
/// Representa la cabecera del remito con su detalle de ítems.
/// </summary>
public class DeliveryNoteDto
{
public int Id { get; set; }
public string DeliveryNoteNumber { get; set; } = string.Empty;
public int? QuoteId { get; set; }
public int? SalesInvoiceId { get; set; }
public DateTime IssueDate { get; set; }
public int CustomerId { get; set; }
public string Status { get; set; } = string.Empty;
public string? Observations { get; set; }
public string? ExtraInfoJson { get; set; }
public int PrintCount { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? ModifiedAt { get; set; }
public List<DeliveryNoteItemDto> Items { get; set; } = new();
}
}