Thread:BentLauridsenDK/@comment-26828130-20170113194216

I've been playing with the Cost template again, i must say i've made progress, but only a little...

I've added #vardefine: & #var: to make Cost give differend results for normal and discounted costs, which works fine (PROGRESS!!!!), but.... not when called from another template like an Infobox (DAMN!!)

See the Test page, where inside the Infobox the discount command seems to be ignored, but outside the Infobox it shows the correct (discounted) values

Maybe you can figure out where it's going wrong? 