Initial commit
This commit is contained in:
18
src/Apollinare.Domain/Entities/EventoAltroCosto.cs
Normal file
18
src/Apollinare.Domain/Entities/EventoAltroCosto.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
|
||||
public class EventoAltroCosto : BaseEntity
|
||||
{
|
||||
public int EventoId { get; set; }
|
||||
public string Descrizione { get; set; } = string.Empty;
|
||||
public decimal CostoUnitario { get; set; }
|
||||
public decimal Quantita { get; set; } = 1;
|
||||
public int Ordine { get; set; } = 0;
|
||||
public bool ApplicaIva { get; set; } = true;
|
||||
public decimal AliquotaIva { get; set; } = 10; // Default 10% IVA
|
||||
|
||||
// Calculated properties
|
||||
public decimal Totale => CostoUnitario * Quantita;
|
||||
public decimal TotaleConIva => ApplicaIva ? Totale * (1 + AliquotaIva / 100) : Totale;
|
||||
|
||||
public Evento? Evento { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user