Files
raven/server/AyaNova/models/QuoteItemExpense.cs
2021-07-23 20:10:03 +00:00

74 lines
2.2 KiB
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using AyaNova.Biz;
namespace AyaNova.Models
{
public class QuoteItemExpense : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
public string Description { get; set; }
public string Name { get; set; }
[Required]
public decimal TotalCost { get; set; }
[Required]
public decimal ChargeAmount { get; set; }
[Required]
public decimal TaxPaid { get; set; }
public long? ChargeTaxCodeId { get; set; }
[NotMapped]
public string TaxCodeViz { get; set; }
public bool ReimburseUser { get; set; } = false;
public long? UserId { get; set; }
[NotMapped]
public string UserViz { get; set; }
public bool ChargeToCustomer { get; set; } = false;
[NotMapped]
public decimal TaxAViz { get; set; }
[NotMapped]
public decimal TaxBViz { get; set; }
[NotMapped]
public decimal LineTotalViz { get; set; }
[Required]
public long QuoteItemId { get; set; }
[JsonIgnore]
public QuoteItem QuoteItem { get; set; }
//workaround for notification
[NotMapped, JsonIgnore]
public List<string> Tags { get; set; } = new List<string>();
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.QuoteItemExpense; }
}//eoc
}//eons
/*
[dbo].[AQuoteITEMMISCEXPENSE](
[AID] [uniqueidentifier] NOT NULL,
[AQuoteITEMID] [uniqueidentifier] NOT NULL,
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[ACREATED] [datetime] NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[ATOTALCOST] [decimal](19, 5) NULL,
[ACHARGEAMOUNT] [decimal](19, 5) NULL,
[ADESCRIPTION] [nvarchar](255) NULL,
[ATAXPAID] [decimal](19, 5) NULL,
[ACHARGETAXCODEID] [uniqueidentifier] NULL,
[ANAME] [nvarchar](255) NULL,
[AREIMBURSEUSER] [bit] NOT NULL,
[AUSERID] [uniqueidentifier] NULL,
[ACHARGETOCLIENT] [bit] NOT NULL,
*/