Example #1
0
        private void ApplyPaymentSummaryDetailsAltTemplate(StringBuilder orderDetails, PaymentTransactionModel payment, Core.Models.OnlinePayments.Invoice.EF.Invoice invoice, Core.Enumerations.InvoiceType invoiceTyped)
        {
            MessageTemplateModel detail3Template = _messageTemplateLogic.ReadForKey
                                                       (Constants.MESSAGE_TEMPLATE_MULTI_PAYMENTDETAIL3);

            orderDetails.Append(detail3Template.Body.Inject(new
            {
                InvoiceType   = invoiceTyped,
                InvoiceNumber = payment.InvoiceNumber,
                InvoiceDate   = invoice.InvoiceDate,
                DueDate       = invoice.DueDate,
                PaymentAmount = payment.PaymentAmount
            }));
        }
Example #2
0
        private void ApplyPaymentSummaryDetailsWithCustomerTemplate(StringBuilder orderDetails, Core.Models.Profile.Customer cust, PaymentTransactionModel payment, Core.Models.OnlinePayments.Invoice.EF.Invoice invoice, Core.Enumerations.InvoiceType invoiceTyped)
        {
            MessageTemplateModel detailTemplate = _messageTemplateLogic.ReadForKey
                                                      (Constants.MESSAGE_TEMPLATE_MULTI_PAYMENTDETAIL1);

            orderDetails.Append(detailTemplate.Body.Inject(new
            {
                CustomerNumber = cust.CustomerNumber,
                CustomerBranch = cust.CustomerBranch,
                CustomerName   = cust.CustomerName,
                InvoiceType    = invoiceTyped,
                InvoiceNumber  = payment.InvoiceNumber,
                InvoiceDate    = invoice.InvoiceDate,
                DueDate        = invoice.DueDate,
                PaymentAmount  = payment.PaymentAmount
            }));
        }
Example #3
0
 private void GetPaymentInvoiceInformation(UserSelectedContext customer, PaymentTransactionModel payment, out Core.Models.OnlinePayments.Invoice.EF.Invoice invoice, out Core.Enumerations.InvoiceType invoiceTyped)
 {
     invoice = _invoiceRepo.GetInvoiceHeader(DivisionHelper.GetDivisionFromBranchId
                                                 (customer.BranchId), customer.CustomerId, payment.InvoiceNumber);
     invoiceTyped = KeithLink.Svc.Core.Extensions.InvoiceExtensions.DetermineType(invoice.InvoiceType);
 }