The Calculation Type is (Servicio al Cliente 12%), but it takes the 12% from the subtotal, but that subtotal has the taxes total included, i want to take the 12% from the subtotal of the products without the taxes.
I create this script.
this return the 12% service from the subtotal without the taxes
But i need to replace or modify the script that have by dafault the calculation type that takes the 12% from the subtotal with taxes.
How can i print the value of my script where appears the 12% of the calculation type.
The service calculation is in Payment screen.
Think your going about it the wrong way, sounds like you need to change the calculation to fixed amount and update with update calculation action using expressons.
The problem was that i used String values at the begining, the last script works well if i used it in the print template, but in the rule needed a script only for number values.