Ejemplo n.º 1
0
 public function getTotalAfterDiscountWithoutVAT()
 {
     $shop = new ShopInfo($this->module_srl);
     $discount = $this->getDiscount();
     if ($discount && ($shop->getShopDiscountType() == Discount::DISCOUNT_TYPE_FIXED_AMOUNT || $shop->getShopDiscountTaxPhase() == Discount::PHASE_AFTER_VAT)) {
         $total = $this->getTotalBeforeDiscountWithVAT();
         $total -= $discount->getReductionValue();
         return $total / (1 + $shop->getVAT() / 100);
     }
     $total = $this->getTotalBeforeDiscountWithoutVAT();
     if ($discount) {
         $total -= $discount->getReductionValue();
     }
     return $total;
 }