/**
  * Add "hidden" discount and shipping tax
  *
  * Go ahead, try to understand ]:->
  *
  * Tax settings for getting "discount tax":
  * - Catalog Prices = Including Tax
  * - Apply Customer Tax = After Discount
  * - Apply Discount on Prices = Including Tax
  *
  * Test case for getting "hidden shipping tax":
  * - Make sure shipping is taxable (set shipping tax class)
  * - Catalog Prices = Including Tax
  * - Shipping Prices = Including Tax
  * - Apply Customer Tax = After Discount
  * - Create a shopping cart price rule with % discount applied to the Shipping Amount
  * - run shopping cart and estimate shipping
  * - go to PayPal
  *
  * @param Mage_Core_Model_Abstract $salesEntity
  */
 private function _applyHiddenTaxWorkaround($salesEntity)
 {
     if (!Mage::helper('imagecc')->isActive()) {
         return parent::_applyHiddenTaxWorkaround($salesEntity);
     }
     $this->_totals[self::TOTAL_TAX] += (double) $salesEntity->getHiddenTaxAmount();
     $this->_totals[self::TOTAL_TAX] += (double) $salesEntity->getShippingHiddenTaxAmount();
 }