Example #1
0
        private static ProviderAdjustment CreatePayment(ProviderAdjustmentPaymentGrouping source, decimal amount)
        {
            var payment = new ProviderAdjustment
            {
                Amount                     = amount,
                PaymentType                = source.PaymentType,
                Ukprn                      = source.Ukprn,
                PaymentTypeName            = source.PaymentTypeName,
                SubmissionCollectionPeriod = source.Period,
                SubmissionId               = source.SubmissionId,
            };

            return(payment);
        }
        private ProviderAdjustment CreatePayment(ProviderAdjustmentPaymentGrouping source, decimal amount)
        {
            var payment = new ProviderAdjustment
            {
                Amount                     = amount,
                PaymentType                = source.PaymentType,
                Ukprn                      = source.Ukprn,
                PaymentTypeName            = source.PaymentTypeName,
                SubmissionCollectionPeriod = source.Period,
                SubmissionId               = source.SubmissionId,
                CollectionPeriodMonth      = collectionPeriodMonth,
                CollectionPeriodYear       = collectionPeriodYear,
                CollectionPeriodName       = collectionPeriodName,
                SubmissionAcademicYear     = submissionAcademicYear
            };

            return(payment);
        }