439
edits
| Line 283: | Line 283: | ||
Here we will go through the creation and management of a custom field called '''coefficient''' that will change the total price by modifying it by the coefficient. | Here we will go through the creation and management of a custom field called '''coefficient''' that will change the total price by modifying it by the coefficient. | ||
The preliminary and necessary step is to first create a custom field that will be used to modify the total price. Then, the following sub-chapters are all independent, thus you can only follow the ones that you require, eg: if you only need to change the price in your PDF documents, just create a custom field then jump to the sub-chapter to Implement the change of price in PDF. | |||
== Creation of the custom field called coefficient == | == Creation of the custom field called coefficient == | ||
| Line 294: | Line 296: | ||
You can see that our coefficient field was successfully created. | You can see that our coefficient field was successfully created. | ||
== Implementing the change of price in ODT == | == Implementing the change of price in ODT templates == | ||
There's no eval implementation currently inside ODT templates, but there is a kind of hook implementation, called [[Create_an_ODT_document_template#Other_personalized_tags|substitution functions]]. | There's no eval implementation currently inside ODT templates, but there is a kind of hook implementation, called [[Create_an_ODT_document_template#Other_personalized_tags|substitution functions]]. | ||
| Line 319: | Line 321: | ||
Just place this tag in a table in your ODT document, between the table tags ( [!-- BEGIN row.lines --] ... [!-- END row.lines --] ), and this will print your full price. | Just place this tag in a table in your ODT document, between the table tags ( [!-- BEGIN row.lines --] ... [!-- END row.lines --] ), and this will print your full price. | ||
== Implementing the change of price in PDF == | == Implementing the change of price in PDF templates == | ||
== Implementing the change of price in the Dolibarr interface == | == Implementing the change of price in the Dolibarr interface == | ||
edits