private void UpdateTopLevelProperties(ImportBook entity, ImportBook to) { entity.ParcelNumber = to.ParcelNumber; entity.SupplierId = to.SupplierId; entity.ForeignCurrency = to.ForeignCurrency; entity.Currency = to.Currency; entity.CarrierId = to.CarrierId; entity.OldArrivalPort = to.OldArrivalPort; entity.FlightNumber = to.FlightNumber; entity.TransportId = to.TransportId; entity.TransportBillNumber = to.TransportBillNumber; entity.TransactionId = to.TransactionId; entity.DeliveryTermCode = to.DeliveryTermCode; entity.ArrivalPort = to.ArrivalPort; entity.LineVatTotal = to.LineVatTotal; entity.Hwb = to.Hwb; entity.SupplierCostCurrency = to.SupplierCostCurrency; entity.TransNature = to.TransNature; entity.ArrivalDate = to.ArrivalDate; entity.FreightCharges = to.FreightCharges; entity.HandlingCharge = to.HandlingCharge; entity.ClearanceCharge = to.ClearanceCharge; entity.Cartage = to.Cartage; entity.Duty = to.Duty; entity.Vat = to.Vat; entity.Misc = to.Misc; entity.CarriersInvTotal = to.CarriersInvTotal; entity.CarriersVatTotal = to.CarriersVatTotal; entity.TotalImportValue = to.TotalImportValue; entity.Pieces = to.Pieces; entity.Weight = to.Weight; entity.CustomsEntryCode = to.CustomsEntryCode; entity.CustomsEntryCodeDate = to.CustomsEntryCodeDate; entity.LinnDuty = to.LinnDuty; entity.LinnVat = to.LinnVat; entity.IprCpcNumber = to.IprCpcNumber; entity.EecgNumber = to.EecgNumber; entity.DateCancelled = to.DateCancelled; entity.CancelledBy = to.CancelledBy; entity.CancelledReason = to.CancelledReason; entity.CarrierInvNumber = to.CarrierInvNumber; entity.CarrierInvDate = to.CarrierInvDate; entity.CountryOfOrigin = to.CountryOfOrigin; entity.FcName = to.FcName; entity.VaxRef = to.VaxRef; entity.Storage = to.Storage; entity.NumCartons = to.NumCartons; entity.NumPallets = to.NumPallets; entity.Comments = to.Comments; entity.ExchangeRate = to.ExchangeRate; entity.ExchangeCurrency = to.ExchangeCurrency; entity.BaseCurrency = to.BaseCurrency; entity.PeriodNumber = to.PeriodNumber; entity.CreatedBy = to.CreatedBy; entity.PortCode = to.PortCode; entity.CustomsEntryCodePrefix = to.CustomsEntryCodePrefix; }
public void Update(ImportBook from, ImportBook to) { this.UpdateTopLevelProperties(from, to); this.UpdateInvoiceDetails(from.InvoiceDetails, to.InvoiceDetails); this.UpdateOrderDetails(from.OrderDetails, to.OrderDetails); this.UpdatePostEntries(from.PostEntries, to.PostEntries); }