Hello All,
I would like to request for a help for how to include unit price (INCLUSIVE of VAT) in ODT template. We are using {line_up}. Any help would be really appreciated. We tried to creating substitution as well, but the value of globa variables are not accessible inside PHP functions.
function mymodule_completesubstitutionarray_lines(&$substitutionarray,$langs,$object,$line)
{
global $conf,$db;
$a = floatval(line_price_ttc_local) * 1.12;
$b = floatval(line_qty);
$myvalue = line_qty;
$substitutionarray[‘myowntag’]=$myvalue;
}
Thanks in advance for any help.