public DealInitialBalanceCorrection(Team team, User user, DealPaymentDocumentType type, string correctionReason, DateTime date, decimal sum, DateTime currentDate)
            : base(team, user, type, date, sum, currentDate)
        {
            ValidationUtils.Assert(type.ContainsIn(DealPaymentDocumentType.DealDebitInitialBalanceCorrection, DealPaymentDocumentType.DealCreditInitialBalanceCorrection),
                                   "Недопустимый тип платежного документа.");

            CorrectionReason = correctionReason;
        }
Exemplo n.º 2
0
        public DealPayment(Team team, User user, DealPaymentDocumentType type, string paymentDocumentNumber, DateTime date, decimal sum, DealPaymentForm dealPaymentForm, DateTime currentDate)
            : base(team, user, type, date, sum, currentDate)
        {
            ValidationUtils.Assert(type.ContainsIn(DealPaymentDocumentType.DealPaymentFromClient, DealPaymentDocumentType.DealPaymentToClient),
                                   "Недопустимый тип платежного документа.");

            PaymentDocumentNumber = paymentDocumentNumber;
            DealPaymentForm       = dealPaymentForm;
        }