This commit is contained in:
mmrbnjd
2024-12-11 15:33:33 +03:30
parent f2de3710f6
commit 3d77585dee
8 changed files with 72 additions and 18 deletions

View File

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