feat(sales): agregar entidades domain para delivery note #14
10
Domain/Constants/DeliveryNoteItemOriginType.cs
Normal file
10
Domain/Constants/DeliveryNoteItemOriginType.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace Domain.Constants
|
||||||
|
{
|
||||||
|
public enum DeliveryNoteItemOriginType : byte
|
||||||
|
{
|
||||||
|
QuoteDetail = 1,
|
||||||
|
SalesProduct = 2,
|
||||||
|
StockProduct = 3,
|
||||||
|
Manual = 4
|
||||||
|
}
|
||||||
|
}
|
||||||
34
Domain/Entities/EDeliveryNote.cs
Normal file
34
Domain/Entities/EDeliveryNote.cs
Normal 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>();
|
||||||
|
}
|
||||||
|
}
|
||||||
32
Domain/Entities/EDeliveryNoteDetail.cs
Normal file
32
Domain/Entities/EDeliveryNoteDetail.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user