439
edits
| Line 343: | Line 343: | ||
Thank's to netassopro for the tip. | Thank's to netassopro for the tip. | ||
= Modify the price of every product/service line with a coefficient (without tampering the discount) = | = Modify the total price of every product/service line with a coefficient (without tampering the discount) = | ||
Here we will go through the creation and management of a custom field called '''coefficient''' that will change the | Here we will go through the creation and management of a custom field called '''coefficient''' that will change the total price of each product 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 | The preliminary and necessary step is to first create a custom field that will be used to modify the total price. We will create one for Client Invoice Lines. | ||
Go to the CustomFields administration panel, then into the Client Invoice Lines tab, then click on the button New Field, name the field '''coefficient''', and set the type to '''Double'''. | Go to the CustomFields administration panel, then into the Client Invoice Lines tab, then click on the button New Field, name the field '''coefficient''', and set the type to '''Double'''. | ||
| Line 355: | Line 355: | ||
You can see that our coefficient field was successfully created. | You can see that our coefficient field was successfully created. | ||
Then here are two alternative ways of implementing the change of the | Then here are two alternative ways of implementing the change of the total price of each product relativery to this coefficient. | ||
== Change total price in database == | == Change total price in database == | ||
| Line 407: | Line 407: | ||
You have nothing to edit in your PDF or ODT template, since the new subprice with applied coefficient will be automatically printed instead of the old one without coefficient. | You have nothing to edit in your PDF or ODT template, since the new subprice with applied coefficient will be automatically printed instead of the old one without coefficient. | ||
== Change printed | == Change printed total price per product without tampering the subprice in the database == | ||
Here is a way to change the printed | Here is a way to change the printed total price (the one shown on screen and in PDF/ODT) but without changing the total price in the database. | ||
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. | 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'''. | ||
=== Implementing the change of price in ODT templates === | === Implementing the change of price in ODT templates === | ||
edits