feat(sales): agregar entidades domain para delivery note #14

Merged
leandro merged 1 commits from feature/leandro/13-deliverynote-domain into master 2026-03-17 01:09:35 +00:00
3 changed files with 76 additions and 0 deletions
Showing only changes of commit 2dd8f5b1c7 - Show all commits

View File

@ -0,0 +1,10 @@
namespace Domain.Constants
{
public enum DeliveryNoteItemOriginType : byte
{
QuoteDetail = 1,
SalesProduct = 2,
StockProduct = 3,
Manual = 4
}
}

View File

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
namespace Domain.Entities
{
public class EDeliveryNote
{
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<EDeliveryNoteDetail> PhSDeliveryNoteDetails { get; set; } = new List<EDeliveryNoteDetail>();
}
}

View File

@ -0,0 +1,32 @@
namespace Domain.Entities
{
public class EDeliveryNoteDetail
{
public int Id { get; set; }
public int DeliverynoteId { get; set; }
public int LineNumber { get; set; }
public byte OriginType { get; set; }
public int? OriginId { get; set; }
public int? QuoteDetailId { get; set; }
public string Description { get; set; } = null!;
public decimal Quantity { get; set; }
public string Notes { get; set; } = null!;
public DateTime Createdat { get; set; }
public DateTime? Modifiedat { get; set; }
//public virtual PhSDeliveryNote Deliverynote { get; set; } = null!;
//public virtual PhSQuoteDetail? QuoteDetail { get; set; }
}
}