public ManagementFeeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType, int period, FeeType mgtFeeType, DateTime creationDate) : base(parentBooking, bookingComponentType, creationDate) { this.Period = period; this.MgtFeeType = mgtFeeType; }
public CashMutationViewGop(IGeneralOperationsBooking booking, ICashSubPosition position, bool isSettled) { this.Booking = booking; this.Position = position; setTransactionType(); this.SearchKey = "G" + Booking.Key.ToString(); CreationDate = Booking.CreationDate; TransactionDate = Booking.BookDate; this.IsSettled = isSettled; setGopValue(); }
protected IGeneralOperationsComponent clone(bool doStorno, IGeneralOperationsBooking parentBooking) { ICashDividendComponent clone = new CashDividendComponent(parentBooking, this.BookingComponentType); foreach (IJournalEntryLine line in this.Component.JournalLines) { IJournalEntryLine cloneLine = line.Clone(); if (doStorno) { cloneLine.Balance = cloneLine.Balance.Negate(); line.StornoedLine = cloneLine; } clone.Component.JournalLines.AddJournalEntryLine(cloneLine); } return clone; }
protected IGeneralOperationsBooking storno(IInternalEmployeeLogin employee, string reason, IMemorialBooking journalEntry, IGeneralOperationsBooking stornoBooking) { if (employee == null) throw new ApplicationException( "Creating a Storno is not possible if employee not specified."); if (employee != null) employee.VerifyStornoLimit(this.Components.TotalBaseAmount.Abs(), true); stornoBooking.Account = Account; stornoBooking.GeneralOpsJournalEntry = journalEntry; stornoBooking.Description = Description; stornoBooking.TaxPercentage = TaxPercentage; stornoBooking.IsStorno = true; stornoBooking.StornoReason = reason; stornoBooking.OriginalBooking = this; stornoBooking.CreationDate = DateTime.Now; foreach (IGeneralOperationsComponent comp in this.Components) { IGeneralOperationsComponent newComp = comp.CloneAndStorno(stornoBooking); newComp.MainLine = newComp.JournalLines.Where(x => x.GiroAccount != null).FirstOrDefault(); stornoBooking.Components.Add(newComp); newComp.ParentBooking = stornoBooking; } this.StornoBooking = stornoBooking; return StornoBooking; }
public static bool Update(IDalSession session, IGeneralOperationsBooking obj) { return session.InsertOrUpdate(obj); }
public override IGeneralOperationsComponent CloneAndStorno(IGeneralOperationsBooking parentBooking) { return clone(true, parentBooking); }
public CashDividendComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType, DateTime creationDate) : base(parentBooking, bookingComponentType, creationDate) { }
public CashDividendComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType) : this(parentBooking, bookingComponentType, DateTime.Now) { }
public override IGeneralOperationsComponent CloneAndStorno(IGeneralOperationsBooking parentBooking) { throw new NotImplementedException(); }
public ForeignExchangeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType, DateTime creationDate) : base(parentBooking, bookingComponentType, creationDate) { }
public ForeignExchangeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType) : this(parentBooking, bookingComponentType, DateTime.Now) { }
public ManagementFeeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType, int period, FeeType mgtFeeType) : this(parentBooking, bookingComponentType, period, mgtFeeType, DateTime.Now) { }
public abstract IGeneralOperationsComponent CloneAndStorno(IGeneralOperationsBooking parentBooking);
public GeneralOperationsComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType, DateTime creationDate) : base(bookingComponentType, creationDate) { this.ParentBooking = parentBooking; }
protected NotaGeneralOperationsBooking(IGeneralOperationsBooking underlyingBooking) : base((ICustomerAccount)underlyingBooking.Account) { this.underlyingBooking = underlyingBooking; underlyingBooking.BookNota = this; }
protected NotaGeneralOperationsBookingTaxeable(IGeneralOperationsBooking underlyingBooking) : base(underlyingBooking) { }