* FrontOfficeApiController.cs: Checks that postal information is

present, before throwing exceptions at generation time

* BlogsController.cs: leaves CodeKicker.BBCode

* Web.csproj: Removes references to CodeKicker.BBCode

* Estim.cs: reflects changes on Estim.tt

* Estim.tt: ensures that billing information are correctly rendered,
  either using the IBAN/BIC or Account numbers methods.

* Profile.cs: adds an "HasPostalAddress" boolean property to the
  profile objects
This commit is contained in:
Paul Schneider 2015-06-06 01:06:38 +02:00
commit f35e82d354
6 changed files with 238 additions and 123 deletions

View file

@ -110,10 +110,14 @@ namespace Yavsc.ApiControllers
Profile prpro = new Profile (ProfileBase.Create (e.Responsible));
if (!prpro.HasBankAccount)
throw new TemplateException ("NotBankable:" + e.Responsible);
if (!prpro.HasPostalAddress)
throw new TemplateException ("NoPostalAddress:" + e.Responsible);
Profile prcli = new Profile (ProfileBase.Create (e.Client));
if (!prcli.IsBillable)
throw new TemplateException ("NotBillable:" + e.Client);
tmpe.Session.Add ("from", prpro);
tmpe.Session.Add ("to", prcli);
tmpe.Init ();