Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.43k stars 2.78k forks source link

Email template variables for order list #19457

Open ultrasites opened 2 years ago

ultrasites commented 2 years ago

Instructions

One email template variable to show the order list in html emails, e.g. ORDERLIST

Rendered Example: Position Product Amount Unit Price
1 ProductA 5 piece 35,00$
2 ProductB 1 piece 10,50$
3 ProductB 32 piece 332,45$

Feature Request

[Short description]

Use case

[Verbose description]

Suggested implementation

[Verbose description]

Suggested steps

[List of tasks to achieve goal]

ultrasites commented 1 year ago

it is still relevant - feature request

ultrasites commented 1 year ago

Hi, any news?

ultrasites commented 1 year ago

@eldy here is a PR: https://github.com/Dolibarr/dolibarr/pull/25683

atm-maxime commented 1 year ago

Hi. On which document would you send an email with an order list ?

ultrasites commented 1 year ago

@atm-maxime order/on order confirmation

atm-maxime commented 1 year ago

Ho ok sorry didn't get it right. I thought it was an order list but it's the order line list. Maybe your variable name confused me.

ultrasites commented 1 year ago

Ah ok, no it should be a detail list of an order

Ashley-Butcher commented 1 year ago

Would it not be better to have the possibility to do XSLT email templates for this functionality? It would provide more flexibility when dealing with more complex email template layouts.

ultrasites commented 1 year ago

I have not seen a

Would it not be better to have the possibility to do XSLT email templates for this functionality? It would provide more flexibility when dealing with more complex email template layouts.

I have not seen any XSLT Template in this project. Only variables exists for ODT Templates or string replacements for emails. Are you confirm?

Ashley-Butcher commented 1 year ago

@ultrasites You're right - there isn't (yet) XSLT support for templates in Dolibarr, but it would be logical to head this way for flexibility. Large ERP systems allow for XSLT email template support for exactly this purpose (to provide richer data, especially tabular data). I was hoping to open a discussion in this direction.