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; } }

View File

@@ -33,19 +33,19 @@ namespace Back.Data.Models
[MaxLength(18)]
public decimal? vam { get
{
return vra==0 ? 0 : invoice?.pattern?.ID == 9 ? fee*vra/100 :
return Math.Floor((vra ==0 ? 0 : invoice?.pattern?.ID == 9 ? fee*vra/100 :
invoice?.pattern?.ID == 13 || invoice?.pattern?.ID == 5 ? ((tcpbs+9)/100)+((prdis*vra)/100)
: vra * adis / 100;
: vra * adis / 100).GetValueOrDefault());
} }
//جمع کل اجرت ،حق العمل و سود
[MaxLength(18)]
public decimal? tcpbs { get { return consfee + spro + bros; } }
//سهم نقدی از پرداخت
[MaxLength(18)]
public decimal? cop { get { return (tsstam * invoice?.cap) / invoice?.tadis; } }
public decimal? cop { get { return Math.Floor(((tsstam * invoice?.cap) / invoice?.tadis).GetValueOrDefault()); } }
//سهم مالیات بر ارزش افزوده از پرداخت
[MaxLength(18)]
public decimal? vop { get { return vra == 0 ? 0 : (vam * invoice?.cap) / invoice?.tadis; } }
public decimal? vop { get { return vra == 0 ? 0 : Math.Floor(((vam * invoice?.cap) / invoice?.tadis).GetValueOrDefault()); } }
//مبلغ کل کالا/خدمت
[MaxLength(18)]
public decimal? tsstam { get