54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace SHERPA.Data.DbModels
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
[Table("Pagamenti")]
|
|
public partial class PagamentiModel
|
|
{
|
|
public int IdFatt { get; set; }
|
|
public DateTime Data { get; set; }
|
|
public decimal? Netto { get; set; }
|
|
public decimal? Importo { get; set; }
|
|
public string? Note { get; set; }
|
|
|
|
[NotMapped]
|
|
public decimal? NettoPagato
|
|
{
|
|
get => Netto;
|
|
set
|
|
{
|
|
if (value <= Netto)
|
|
{
|
|
Netto = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
[NotMapped]
|
|
public decimal? ImportoPagato
|
|
{
|
|
get => Importo;
|
|
set
|
|
{
|
|
if (value <= Importo)
|
|
{
|
|
Importo = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
[NotMapped]
|
|
public decimal? ResidNetto { get; set; }
|
|
|
|
[NotMapped]
|
|
public decimal? ResidImporto { get; set; }
|
|
|
|
public virtual AccoDocModel FattureNav { get; set; } = null!;
|
|
}
|
|
}
|