Example #1
0
<?php

/**
 * Product:     Loyalty Program for Enterprise Edition
 * Package:     Aitoc_Aitloyalty_10.0.10_574534
 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C
 * Generated:   2013-05-13 06:36:55
 * File path:   app/code/local/Aitoc/Aitloyalty/Block/Quote/Titles.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) {
    kYZjDDkNdekPfBQd('fca0a837556302f926a88d46baa4940d');
    /**
    * @copyright  Copyright (c) 2009 AITOC, Inc. 
    */
    class Aitoc_Aitloyalty_Block_Quote_Titles implements Varien_Data_Form_Element_Renderer_Interface
    {
        public function render(Varien_Data_Form_Element_Abstract $element)
        {
            $sHtml = '';
            $sHtml .= '
    <tr>
        <td class="label"><label for="rule_aitloyalty_customer_display_title">' . Mage::helper('salesrule')->__('Please describe the rule conditions') . '</label></td>
        <td class="value" colspan="2">
    <div class="box" id="aitloyalty_customer_display_title" style="overflow:visible;">
		    <div class="hor-scroll" style="overflow:visible;">
	        <table class="dynamic-grid" cellspacing="0" id="attribute-labels-table">
	            <tr>';
            $bFirst = true;
            foreach ($this->getStores() as $_store) {
                if ($_store->getId()) {
Example #2
0
<?php

/**
 * Product:     Loyalty Program for Enterprise Edition
 * Package:     Aitoc_Aitloyalty_10.0.10_574534
 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C
 * Generated:   2013-05-13 06:36:55
 * File path:   app/code/local/Aitoc/Aitloyalty/Block/Rewrite/Adminhtml/Sales/Order/Invoice/Totals.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) {
    kYZjDDkNdekPfBQd('06d6fa3d678eee81e7bf276a73ad9757');
    /**
     * Magento
     *
     * NOTICE OF LICENSE
     *
     * This source file is subject to the Open Software License (OSL 3.0)
     * that is bundled with this package in the file LICENSE.txt.
     * It is also available through the world-wide-web at this URL:
     * http://opensource.org/licenses/osl-3.0.php
     * If you did not receive a copy of the license and are unable to
     * obtain it through the world-wide-web, please send an email
     * to license@magentocommerce.com so we can send you a copy immediately.
     *
     * DISCLAIMER
     *
     * Do not edit or add to this file if you wish to upgrade Magento to newer
     * versions in the future. If you wish to customize Magento for your
     * needs please refer to http://www.magentocommerce.com for more information.
     *
<?php

/**
 * Product:     Loyalty Program for Enterprise Edition
 * Package:     Aitoc_Aitloyalty_10.0.10_574534
 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C
 * Generated:   2013-05-13 06:36:55
 * File path:   app/code/local/Aitoc/Aitloyalty/Model/Rewrite/SalesTotalQuoteTax.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) {
    kYZjDDkNdekPfBQd('b9d9c4a0e00bb82b600974b642e8b811');
    class Aitoc_Aitloyalty_Model_Rewrite_SalesTotalQuoteTax extends Mage_Tax_Model_Sales_Total_Quote_Tax
    {
        protected function _aggregateTaxPerRate($item, $rate, &$taxGroups)
        {
            if (Aitoc_Aitsys_Abstract_Service::get()->isMagentoVersion(">=1.4.1.1")) {
                $inclTax = $item->getIsPriceInclTax();
                $rateKey = (string) $rate;
                $subtotal = $item->getTaxableAmount() + $item->getExtraRowTaxableAmount();
                $baseSubtotal = $item->getBaseTaxableAmount() + $item->getBaseExtraRowTaxableAmount();
                $item->setTaxPercent($rate);
                if (!isset($taxGroups[$rateKey]['totals'])) {
                    $taxGroups[$rateKey]['totals'] = array();
                    $taxGroups[$rateKey]['base_totals'] = array();
                }
                $hiddenTax = null;
                $baseHiddenTax = null;
                switch ($this->_helper->getCalculationSequence($this->_store)) {
                    case Mage_Tax_Model_Calculation::CALC_TAX_BEFORE_DISCOUNT_ON_EXCL:
                    case Mage_Tax_Model_Calculation::CALC_TAX_BEFORE_DISCOUNT_ON_INCL: