This version takes into account whether the total amount comes with or without taxes. If prices are without taxes, it won't deduct the taxes amount to the total amount to show this figure.

Regards,
Pedro.

More...