Esempio n. 1
0
        /// <summary>
        /// Insert deposit fee transaction of cancel of slide after cancel payment matching.
        /// </summary>
        /// <param name="doSlideRefund"></param>
        /// <param name="cancelAmount"></param>
        /// <param name="balanceDeposit"></param>
        /// <param name="contractCode"></param>
        /// <param name="billingOCC"></param>
        /// <returns></returns>
        public bool InsertDepositFeeCancelSlide(doRefundInfo doSlideRefund, decimal cancelAmount, decimal balanceDeposit, string contractCode, string billingOCC, decimal cancelAmountUsd, string cancelAmountCurrencyType)
        {
            tbt_Depositfee doDepositFee = new tbt_Depositfee()
            {
                ContractCode              = doSlideRefund.ContractCode,
                BillingOCC                = doSlideRefund.BillingOCC,
                DepositFeeNo              = 0, //Max running + 1 Move logic to sp_BL_InsertTbt_Depositfee,
                ProcessDate               = CommonUtil.dsTransData.dtOperationData.ProcessDateTime,
                DepositStatus             = DepositStatus.C_DEPOSIT_STATUS_CANCEL_SLIDE,
                ProcessAmount             = cancelAmount,
                ProcessAmountUsd          = cancelAmountUsd,
                ProcessAmountCurrencyType = cancelAmountCurrencyType,
                ReceivedFee               = balanceDeposit,
                InvoiceNo        = null,
                ReceiptNo        = null,
                CreditNoteNo     = doSlideRefund.CreditNoteNo,
                SlideBillingCode = contractCode + "-" + billingOCC,
                RevenueNo        = null,
                CreateBy         = CommonUtil.dsTransData.dtUserData.EmpNo,
                CreateDate       = CommonUtil.dsTransData.dtOperationData.ProcessDateTime,
                UpdateBy         = CommonUtil.dsTransData.dtUserData.EmpNo,
                UpdateDate       = CommonUtil.dsTransData.dtOperationData.ProcessDateTime
            };
            var result = CreateTbt_Depositfee(doDepositFee);

            return(result.Count > 0);
        }
Esempio n. 2
0
        /// <summary>
        /// Function for retrieving information of refund deposit payment
        /// </summary>
        /// <param name="paymentTransNo"></param>
        /// <returns></returns>
        public doRefundInfo GetRefundInfo(string paymentTransNo)
        {
            doRefundInfo result = base.GetRefundInfo(paymentTransNo).FirstOrDefault();

            return(result);
        }