Example #1
0
        //DESIGN RECONSIDERATION
        public void AddFeeDeviation(IPayableFee curPF , int fdId)
        {
            FeeDeviationPayableFee newFD =
                new FeeDeviationPayableFee(curPF, fdId);

            newFD.IsRecurring = 1;
            newFD.Value = 0;
            newFD.Save();

            curPF.ComputeDynamicFields(CurrentPaymentAdvice);
            curPF.Save();

            //log
            CurrentPaymentAdvice.LastAction = "Add FeeDeviation";
            CurrentPaymentAdvice.LastModifiedBy =
                ApasAccessControlManager.GetCurrentInstance().LogonUser.Id;
            CurrentPaymentAdvice.LastModifiedTime = DateTime.Now;

            CurrentPaymentAdvice.Save();
        }