This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
@@ -8,15 +8,26 @@ namespace AyaNova.Models
|
||||
{
|
||||
public class WorkOrderItemTravel : ICoreBizObjectModel
|
||||
{
|
||||
public WorkOrderItemTravel()
|
||||
{
|
||||
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 long? UserId { get; set; }
|
||||
public DateTime? TravelStartDate { get; set; }
|
||||
public DateTime? TravelStopDate { get; set; }
|
||||
public long? TravelRateId { get; set; }
|
||||
public string TravelDetails { get; set; }
|
||||
public decimal TravelRateQuantity { get; set; }
|
||||
public decimal NoChargeQuantity { get; set; }
|
||||
public long? ServiceBankId { get; set; }
|
||||
public long? TaxCodeSaleId { get; set; }
|
||||
public decimal Distance { get; set; }
|
||||
public decimal BasePrice { get; set; }//Rate price per unit at time of entry
|
||||
public decimal Price { get; set; }//contract adjusted price or a copy of BasePrice if no contract
|
||||
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
||||
|
||||
[Required]
|
||||
public long WorkOrderItemId { get; set; }
|
||||
[JsonIgnore]
|
||||
@@ -27,3 +38,23 @@ namespace AyaNova.Models
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
/*
|
||||
CREATE TABLE [dbo].[AWORKORDERITEMTRAVEL](
|
||||
[AID] [uniqueidentifier] NOT NULL,
|
||||
[AWORKORDERITEMID] [uniqueidentifier] NOT NULL,
|
||||
[ACREATOR] [uniqueidentifier] NOT NULL,
|
||||
[AMODIFIER] [uniqueidentifier] NOT NULL,
|
||||
[ACREATED] [datetime] NOT NULL,
|
||||
[AMODIFIED] [datetime] NOT NULL,
|
||||
[ANOTES] [ntext] NULL,
|
||||
[AUSERID] [uniqueidentifier] NULL,
|
||||
[ATRAVELSTARTDATE] [datetime] NULL,
|
||||
[ATRAVELSTOPDATE] [datetime] NULL,
|
||||
[ATRAVELRATEID] [uniqueidentifier] NULL,
|
||||
[ATRAVELDETAILS] [nvarchar](255) NULL,
|
||||
[ATRAVELRATEQUANTITY] [decimal](19, 5) NULL,
|
||||
[ANOCHARGEQUANTITY] [decimal](19, 5) NULL,
|
||||
[ADISTANCE] [decimal](19, 5) NULL,
|
||||
[ATAXRATESALEID] [uniqueidentifier] NULL,
|
||||
[ASERVICEBANKID] [uniqueidentifier] NULL
|
||||
*/
|
||||
Reference in New Issue
Block a user