//
 private void TrwRefCashFlowUpdate()
 {
     if (Order == null || CostItem == null || !(PayType == fmPRPayType.PREPAYMENT || PayType == fmPRPayType.POSTPAYMENT))
     {
         return;
     }
     TrwRefCashFlow = TrwRefCashFlowLogic.AutoDetect(ObjectSpace.FindObjectSpaceByObject(this), false, Order, PayType, CostItem);
 }
示例#2
0
        void UpdatePaymentRequest(IObjectSpace os)
        {
            IList <fmCPRPaymentRequest> reqs = os.GetObjects <fmCPRPaymentRequest>(new BinaryOperator("Date", new DateTime(2014, 1, 1), BinaryOperatorType.GreaterOrEqual));

            foreach (fmCPRPaymentRequest req in reqs)
            {
                foreach (fmCPRPaymentRequestObligation line in req.PaySettlmentOfObligations)
                {
                    line.TrwRefCashFlow = TrwRefCashFlowLogic.AutoDetect(os, false, line.Order, line.PayType, line.CostItem);
                }
            }
        }