fix bug
This commit is contained in:
@@ -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; } }
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user