...
This commit is contained in:
@@ -33,10 +33,10 @@ namespace Back.Data.Models
|
||||
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; } }
|
||||
public string? tinb { get { return Customer.CustomerType==CustomerType.WithoutIdentity ?null : Customer.EconomicCode; } }
|
||||
//مجموع مبلغ قبل از کسر تخفیف
|
||||
[MaxLength(18)]
|
||||
public decimal? tprdis { get { return invoiceDetails.Sum(i => i.prdis); } }
|
||||
@@ -69,7 +69,7 @@ namespace Back.Data.Models
|
||||
public decimal? tvop { get { return invoiceDetails.Sum(i => i.vop); } }
|
||||
//نوع شخص خریدار
|
||||
[MaxLength(1)]
|
||||
public int tob { get { return (int)Customer.CustomerType; } }
|
||||
public int tob { get { return Customer.CustomerType == CustomerType.WithoutIdentity ? 0 : (int)Customer.CustomerType; } }
|
||||
//اریخ کوتاژ اظهارنامه گمرکی
|
||||
// Unix Time => from fild CottageDateOfCustomsDeclaration
|
||||
[MaxLength(5)]
|
||||
@@ -79,16 +79,16 @@ namespace Back.Data.Models
|
||||
} }
|
||||
//کد پستی خریدار
|
||||
[MaxLength(10)]
|
||||
public string? bpc { get { return Customer.ZipCode; } }
|
||||
public string? bpc { get { return Customer.CustomerType == CustomerType.WithoutIdentity ? null : Customer.ZipCode; } }
|
||||
//کد شعبه خریدار
|
||||
[MaxLength(10)]
|
||||
public string? bbc { get { return Customer.BranchID; } }
|
||||
public string? bbc { get { return Customer.CustomerType == CustomerType.WithoutIdentity ? null : Customer.BranchID; } }
|
||||
//شناسه ملی/ شماره ملی/ شناسه مشارکت مدنی/ کد فراگیر اتباع غیرایرانی خریدار
|
||||
[MaxLength(14)]
|
||||
public string? bid { get { return Customer.MeliCode; } }
|
||||
public string? bid { get { return Customer.CustomerType == CustomerType.WithoutIdentity ? null : Customer.MeliCode; } }
|
||||
//شماره گذرنامه خریدار
|
||||
[MaxLength(9)]
|
||||
public string? bpn { get { return Customer.PassportNumber; } }
|
||||
public string? bpn { get { return Customer.CustomerType == CustomerType.WithoutIdentity ? null : Customer.PassportNumber; } }
|
||||
//کد شعبه فروشنده
|
||||
[MaxLength(9)]
|
||||
public string? sbc { get { return company?.BranchID; } }
|
||||
|
Reference in New Issue
Block a user