We are looking at customizing our group sales emails to reduce the amount of handwritten emails we need to send with information for our groups. One of our big wishes is being able to have their payment due date in the confirmation itself. So, let's say their performance is 4/15. We require payment two weeks before their performance so we would want to let them know in the order confirmation that payment would be due 4/1. Is there a way to auto-generate this in the HTML templates, either using a +/- date function or using the Payment Schedule to tell our groups when their payment is due? Thank you!
Agree that payment plan due date is an easy way (OrderProductViewPaymentPlan.DateDue). We use this in our Education group invoices.
This makes perfect sense - is there any specific way you've incorporated it into the coding?
After checking for plans...
var hasPaymentPlans = Model.OrderProductView.PaymentPlans != null && Model.OrderProductView.PaymentPlans.Count > 0;
the html calls PaymentPlanDueDate(), which is defined separately in @functions{ ... }
public string PaymentPlanDueDate() { DateTime dt = (DateTime) ( from plan in @Model.OrderProductView.PaymentPlans select plan.DateDue ).First(); return dt.ToString("MMMM d, yyyy"); }
We only use a single plan, so it'd have to be modified for multiple.