Feat Backend ERP 1

This commit is contained in:
2026-01-07 11:34:25 -03:00
parent 81aea41e69
commit fdb221d0fa
29 changed files with 1364 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
namespace SIGCM.Domain.Entities;
public class OrderItem
{
public int Id { get; set; }
public int OrderId { get; set; }
public int ProductId { get; set; }
public int CompanyId { get; set; } // Para facturación cruzada
// Vinculación polimórfica (Ej: ID del Listing que se acaba de crear)
public int? RelatedEntityId { get; set; }
public string? RelatedEntityType { get; set; } // 'Listing', 'Merchandise', 'RadioSpot'
public decimal Quantity { get; set; }
public decimal UnitPrice { get; set; }
public decimal TaxRate { get; set; }
public decimal SubTotal { get; set; }
public decimal CommissionPercentage { get; set; }
public decimal CommissionAmount { get; set; }
// Auxiliar
public string? ProductName { get; set; }
}