When generating a document number which has prefix and/or suffix, if it requires a value from an empty fields (eg: @AD_Org_ID<AD_Org.Description>@, the document number will contains 'null' instead of ''.
I set the priority to Critical because generating a document number with 'null' inside is quite ugly
Thanks Nicolas, your patch contained a copy/paste error. I committed a fixed version, please test.
Making more tests and I think this is more complex
Let's take this example : /@AD_Org_ID<AD_Org.Description>@/@XXA_DossierRecuLe<yyyy>@
If there is no description, it will add null2014.
So I think the problem is in the parseVariable method which should returns "" instead of 'null'.
Moreover, this should be