This commit is contained in:
mmrbnjd
2024-12-14 14:20:36 +03:30
parent 8c06064476
commit 9d468a4dda
4 changed files with 11 additions and 13 deletions

View File

@@ -66,7 +66,7 @@ namespace Back.Data.Models
public decimal? tocv { get { return invoiceDetails.Sum(i => i.sscv); } }
//مجموع سهم مالیات بر ارزش افزوده از پرداخت
[MaxLength(18)]
public decimal? tvop { get { return invoiceDetails.Sum(i => i.vop); } }
public decimal? tvop { get { return Math.Floor(invoiceDetails.Sum(i => i.vop).GetValueOrDefault()); } }
//نوع شخص خریدار
[MaxLength(1)]
public int tob { get { return Customer.CustomerType == CustomerType.WithoutIdentity ? 0 : (int)Customer.CustomerType; } }