+1
Answered

Assign different templates to customer depending on branch

Alexandros 7 years ago updated by Jussi Rautio 7 years ago 3

Hi,


I wanted to ask if anyone has found a method to automatically assign different quote and invoice templates as well as a numbering scheme to a customer, depending on the branch they have been assigned to? Perhaps using a macro after the customer has been created?

This is something that we would be very interested in as well

Answered

The numbering scheme seems easiest to adjust.

Quote and invoice templates would require additional client accounts at the moment and probably some sort of office structure.

+1

To get different content in the templates depending on our branch we just use we use conditionals in the template code:


if(xtrfContext.getRootObject().getCustomer().getBranch().getId()==2) {
"An invoicing surcharge of SEK 45 will be added to the final invoice."
}
else {
"An invoicing surcharge of EUR 5 will be added to the final invoice."
}