How do I get a GROSS UNIT PRICE (unit price including VAT) on my ODT invoice template in the order lines section?
Version 3.3.1.
Anyone knows how to do this?? please help.
Selling products/services to end-customers and only be able to use a ex-VAT price on your invoices makes no sense!!
Gross Sales prices are entered in the productsmodule and so why can I not use that for my invoices? There is no ODT tag for the invoice_line available. This should standard be the case.
Please help me to solve this, I’ve spend days to figure this out, without success. I can’t use Dolibarr elsewise. Customfields module has not presented a solution so far.
I’ve tried to modify htdocs/mymodule/core/substitutions/functions_mymodule.lib.php according to the Wiki instructions into this:
*/
function mymodule_completesubstitutionarray_lines(&$substitutionarray,$langs,$object,$line) {
{
global $conf,$db;
$myvalue=’(line_price_ttc/line_qty)’;
$substitutionarray[‘line_brutoprice_unit’]=$myvalue;
But it doesn’t work. On the ODT generated document appears {line_brutoprice_unit} but not the calculated value. What is wrong with the code?
Thanx in advance for the response!
Marc