This commit is contained in:
mmrbnjd
2024-10-19 18:30:02 +03:30
parent a930d1c576
commit 42a5e76cde
5 changed files with 48 additions and 30 deletions

View File

@@ -15,6 +15,7 @@ namespace Back.Data.Models
public int? BillReference { get; set; }
#endregion
#region autofild
//تاریخ و زمان صدور صورتحساب )میالدی(
@@ -94,11 +95,14 @@ namespace Back.Data.Models
[MaxLength(18)]
public decimal? cap { get {
return
setm == 1 ? tbill : setm == 2 ? 0 : tbill - insp;
setm == 1 ? tbill.GetValueOrDefault() - todam.GetValueOrDefault() - tvam.GetValueOrDefault()
: setm == 2 ? 0
: tbill.GetValueOrDefault() - todam.GetValueOrDefault() - tvam.GetValueOrDefault() - insp.GetValueOrDefault();
} }
//موضوع صورتحساب
[MaxLength(1)]
public int? ins { get { return (int)invoiceType; } }
public decimal Calcinsp { get { return tbill.GetValueOrDefault() - todam.GetValueOrDefault() - tvam.GetValueOrDefault(); } }
#endregion
#region fild
@@ -143,7 +147,7 @@ namespace Back.Data.Models
{
get
{
return pattern.BillTypeID == 3 || pattern.BillTypeID == 4 || pattern.inp == 8
return pattern.BillTypeID == 3 || pattern.BillTypeID == 4 || pattern.ID == 2 || pattern.ID == 10
? 1
: _setm;
}