74 lines
2.2 KiB
C#
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 WorkOrderItemExpense : 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 ChargeTaxCodeViz { 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 WorkOrderItemId { get; set; }
|
|
[JsonIgnore]
|
|
public WorkOrderItem WorkOrderItem { get; set; }
|
|
|
|
//workaround for notification
|
|
[NotMapped, JsonIgnore]
|
|
public List<string> Tags { get; set; } = new List<string>();
|
|
|
|
|
|
[NotMapped, JsonIgnore]
|
|
public AyaType AyaType { get => AyaType.WorkOrderItemExpense; }
|
|
|
|
}//eoc
|
|
}//eons
|
|
/*
|
|
[dbo].[AWORKORDERITEMMISCEXPENSE](
|
|
[AID] [uniqueidentifier] NOT NULL,
|
|
[AWORKORDERITEMID] [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,
|
|
*/ |