Пример #1
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="saleWaybill">Накладная реализации, по которой делается возврат</param>
 /// <param name="returnFromClientWaybill">Накладная возврата от клиента</param>
 /// <param name="sum">Разносимая сумма возврата</param>
 /// <param name="currentDate">Дата операции</param>
 public DealPaymentDocumentDistributionToReturnFromClientWaybill(DealPaymentDocument sourceDealPaymentDocument,
                                                                 ReturnFromClientWaybill returnFromClientWaybill, SaleWaybill saleWaybill, decimal sum, DateTime distributionDate, DateTime currentDate)
     : base(sourceDealPaymentDocument, sum, distributionDate, currentDate)
 {
     ReturnFromClientWaybill = returnFromClientWaybill;
     SaleWaybill             = saleWaybill;
 }
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="sum">Разносимая сумма</param>
 /// <param name="currentDate">Дата операции</param>
 public DealPaymentDocumentDistributionToDealPaymentDocument(DealPaymentDocument sourceDealPaymentDocument,
                                                             DealPaymentDocument destinationDealPaymentDocument, decimal sum, DateTime distributionDate, DateTime currentDate)
     : base(sourceDealPaymentDocument, sum, distributionDate, currentDate)
 {
     ValidationUtils.Assert(destinationDealPaymentDocument.Type.ContainsIn(DealPaymentDocumentType.DealPaymentToClient, DealPaymentDocumentType.DealDebitInitialBalanceCorrection),
                            "Платежный документ, на который выполняется разнесение, имеет недопустимый тип.");
     DestinationDealPaymentDocument = destinationDealPaymentDocument;
 }
Пример #3
0
        protected DealPaymentDocumentDistribution(DealPaymentDocument sourceDealPaymentDocument, decimal sum, DateTime distributionDate, DateTime currentDate)
        {
            ValidationUtils.Assert(sourceDealPaymentDocument.Type.ContainsIn(DealPaymentDocumentType.DealPaymentFromClient, DealPaymentDocumentType.DealCreditInitialBalanceCorrection),
                                   "Разносимый платежный документ имеет недопустимый тип.");

            SourceDealPaymentDocument = sourceDealPaymentDocument;
            DistributionDate          = distributionDate;
            CreationDate = currentDate;
            Sum          = sum;
        }
Пример #4
0
 public virtual void DeleteDealPaymentDocument(DealPaymentDocument dealPaymentDocument, DateTime currentDate)
 {
     dealPaymentDocuments.Remove(dealPaymentDocument);
     dealPaymentDocument.DeletionDate = currentDate;
 }
Пример #5
0
 public virtual void AddDealPaymentDocument(DealPaymentDocument dealPaymentDocument)
 {
     dealPaymentDocuments.Add(dealPaymentDocument);
     dealPaymentDocument.Deal = this;
 }
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="sum">Разносимая сумма</param>
 /// <param name="currentDate">Дата операции</param>
 public DealPaymentDocumentDistributionToSaleWaybill(DealPaymentDocument sourceDealPaymentDocument,
     SaleWaybill saleWaybill, decimal sum, DateTime distributionDate, DateTime currentDate)
     : base(sourceDealPaymentDocument, sum, distributionDate, currentDate)
 {
     SaleWaybill = saleWaybill;
 }