This commit is contained in:
mmrbnjd
2024-06-08 21:48:26 +03:30
parent 39dbbf03d8
commit eddbc54c4c
7 changed files with 150 additions and 93 deletions

View File

@@ -90,7 +90,7 @@ namespace Back.Data.Models
public string? sbc { get { return company?.BranchID; } }
//مبلغ پرداختی نقدی
[MaxLength(18)]
public decimal? cap { get { return insp - tvam - todam - tbill; } }
public decimal? cap { get { return tbill- insp- tvam- todam; } }
//موضوع صورتحساب
[MaxLength(1)]
public int? ins { get { return (int)invoiceType; } }
@@ -131,11 +131,16 @@ namespace Back.Data.Models
//روش تسویه
private int? _setm;
[MaxLength(1)]
public int? setm { get { return pattern.BillTypeID == 3 || pattern.BillTypeID == 4 || pattern.inp==8
public int? setm
{
get
{
return pattern.BillTypeID == 3 || pattern.BillTypeID == 4 || pattern.inp == 8
? 1
:_setm; }
: _setm;
}
set { _setm = value; }
}
}
//مبلغ نسیه
[MaxLength(18)]
public decimal? insp { get; set; } = 0;