コード例 #1
0
ファイル: LeadDetail.cs プロジェクト: noel5000/PointOfSalesV2
 public LeadDetail(LeadDetail newDetail)
 {
     this.Id                      = newDetail.Id;
     this.ProductId               = newDetail.ProductId;
     this.Product                 = newDetail.Product ?? null;
     this.Active                  = newDetail.Active;
     this.WarehouseId             = newDetail.WarehouseId ?? null;
     this.Quantity                = newDetail.Quantity;
     this.Comments                = newDetail.Comments;
     this.CreatedBy               = newDetail.CreatedBy;
     this.InvoiceLeadId           = newDetail.InvoiceLeadId;
     this.Date                    = newDetail.Date;
     this.CreatedDate             = newDetail.CreatedDate;
     this.ModifiedDate            = newDetail.ModifiedDate;
     this.ModifiedBy              = newDetail.ModifiedBy;
     this.Amount                  = newDetail.Amount;
     this.PrincipalCurrencyAmount = newDetail.PrincipalCurrencyAmount;
     this.BeforeTaxesAmount       = newDetail.BeforeTaxesAmount;
     this.TaxesAmount             = newDetail.TaxesAmount;
     this.TotalAmount             = newDetail.TotalAmount;
     this.Unit                    = newDetail.Unit ?? null;
     this.UnitId                  = newDetail.UnitId ?? null;
     this.DiscountAmount          = newDetail.DiscountAmount;
     this.CreditNoteAmount        = newDetail.CreditNoteAmount;
     this.ParentId                = newDetail.ParentId;
     this.SaveRegister            = newDetail.SaveRegister;
     this.DiscountRate            = newDetail.DiscountRate;
     this.Free                    = newDetail.Free;
     this.SellerRate              = newDetail.SellerRate;
     this.Cost                    = newDetail.Cost;
     this.ReturnAmount            = newDetail.ReturnAmount;
     this.Defective               = newDetail.Defective;
 }
コード例 #2
0
ファイル: LeadDetail.cs プロジェクト: noel5000/PointOfSalesV2
 public bool Equals(LeadDetail other)
 {
     return(this.Id == other.Id && this.ProductId == other.ProductId && this.Quantity == other.Quantity && this.Amount == other.Amount && this.Cost == other.Cost &&
            this.UnitId == other.UnitId && this.TaxesAmount == other.TaxesAmount && this.BeforeTaxesAmount == other.BeforeTaxesAmount && this.TotalAmount == other.TotalAmount &&
            this.InvoiceLeadId == other.InvoiceLeadId && this.CreditNoteAmount == other.CreditNoteAmount && this.DiscountAmount == other.DiscountAmount && this.DiscountRate == other.DiscountRate &&
            this.Free == other.Free && this.ParentId == other.ParentId && this.WarehouseId == other.WarehouseId &&
            this.Active == other.Active && this.Date == other.Date && this.CreatedDate == other.CreatedDate);
 }