This commit is contained in:
@@ -8,23 +8,49 @@ namespace AyaNova.Models
|
||||
{
|
||||
public class WorkOrderItemExpense : ICoreBizObjectModel
|
||||
{
|
||||
public WorkOrderItemExpense()
|
||||
{
|
||||
Tags = new List<string>();
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { 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; }
|
||||
public bool ReimburseUser { get; set; } = false;
|
||||
public long? UserId { get; set; }
|
||||
public bool ChargeToCustomer { get; set; } = false;
|
||||
|
||||
|
||||
[Required]
|
||||
public long WorkOrderItemId { get; set; }
|
||||
[JsonIgnore]
|
||||
public WorkOrderItem WorkOrderItem { get; set; }
|
||||
|
||||
|
||||
[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,
|
||||
*/
|
||||
Reference in New Issue
Block a user