...
This commit is contained in:
@@ -50,7 +50,6 @@ namespace TaxPayer.Infrastructure.Persistence
|
||||
public DbSet<Promotion> Promotions { get; set; }
|
||||
public DbSet<PromotionDetails> PromotionDetails { get; set; }
|
||||
public DbSet<CreditDocuments> CreditDocuments { get; set; }
|
||||
public DbSet<Condition> Conditions { get; set; }
|
||||
#endregion
|
||||
//public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken())
|
||||
//{
|
||||
|
@@ -1,16 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Back.Data.Models
|
||||
{
|
||||
public class Condition
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int fildID { get; set; }
|
||||
public string condition { get; set; }
|
||||
|
||||
|
||||
//----------nav
|
||||
[ForeignKey("fildID")]
|
||||
public Fild fild { get; set; }
|
||||
}
|
||||
}
|
@@ -16,7 +16,6 @@ namespace Back.Data.Models
|
||||
#region Navigation
|
||||
public virtual ICollection<FildModeInPattern> FildModeInPatterns { get; set; }
|
||||
public virtual ICollection<Coding> Codings { get; set; }
|
||||
public virtual ICollection<Condition> Conditions { get; set; }
|
||||
[NotMapped]
|
||||
public ICollection<SpecialCondition> specialConditions { get; set; }
|
||||
#endregion
|
||||
|
@@ -1,5 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
|
||||
namespace Back.Data.Models
|
||||
{
|
||||
@@ -25,7 +26,10 @@ namespace Back.Data.Models
|
||||
public string? mu { get { return cODItem != null ? cODItem.CODUnit.UnitTaxID : null; } }
|
||||
//میزان ارز
|
||||
[MaxLength(18)]
|
||||
public decimal? cfee { get { return exr==null || exr==0 ? null : fee / exr; } }
|
||||
public decimal? cfee { get { return
|
||||
invoice?.pattern?.inp == 2 ? _cfee
|
||||
: invoice?.pattern?.inp == 1 && exr != null && exr != 0 ? fee / exr
|
||||
: null ; } }
|
||||
//مبلغ مالیات بر ارزش افزوده
|
||||
[MaxLength(18)]
|
||||
public decimal? vam { get
|
||||
@@ -128,6 +132,7 @@ namespace Back.Data.Models
|
||||
//شناسه یکتای ثبت قرارداد حق العمل کاری
|
||||
[MaxLength(12)]
|
||||
public string? bsrn { get; set; }
|
||||
public decimal? _cfee { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Navigation
|
||||
|
Reference in New Issue
Block a user