invoicedtos
This commit is contained in:
@@ -29,10 +29,10 @@ namespace Back.Data.Models
|
||||
public int? inty { get { return pattern.BillType.inty; } }
|
||||
//الگوی صورتحساب
|
||||
[MaxLength(2)]
|
||||
public int? inp { get { return pattern.inp; } }
|
||||
public int? inp { get { return pattern?.inp; } }
|
||||
//شماره اقتصادی فروشنده
|
||||
[MaxLength(14)]
|
||||
public string? tins { get { return company.EconomicCode; } }
|
||||
public string? tins { get { return company?.EconomicCode; } }
|
||||
//شماره اقتصادی خریدار
|
||||
[MaxLength(14)]
|
||||
public string? tinb { get { return Customer.EconomicCode; } }
|
||||
@@ -53,7 +53,7 @@ namespace Back.Data.Models
|
||||
public decimal? todam { get { return invoiceDetails.Sum(i => i.odam) + invoiceDetails.Sum(i => i.olam); } }
|
||||
//مجموع صورتحساب
|
||||
[MaxLength(18)]
|
||||
public decimal? tbill { get {return pattern.inp==10? torv+ tvam+ todam : invoiceDetails.Sum(i => i.tsstam);}}
|
||||
public decimal? tbill { get {return pattern?.inp==10? torv+ tvam+ todam : invoiceDetails.Sum(i => i.tsstam);}}
|
||||
//مجموع وزن خالص
|
||||
[MaxLength(18)]
|
||||
public decimal? tonw { get { return invoiceDetails.Sum(i => i.nw); } }
|
||||
@@ -87,7 +87,7 @@ namespace Back.Data.Models
|
||||
public string? bpn { get { return Customer.PassportNumber; } }
|
||||
//کد شعبه فروشنده
|
||||
[MaxLength(9)]
|
||||
public string? sbc { get { return company.BranchID; } }
|
||||
public string? sbc { get { return company?.BranchID; } }
|
||||
//مبلغ پرداختی نقدی
|
||||
[MaxLength(18)]
|
||||
public decimal? cap { get { return insp - tvam - todam - tbill; } }
|
||||
|
Reference in New Issue
Block a user