<commit_before><?php

/**
 * @author <NAME> <<EMAIL>>
 * @copyright (c) 2013, webtischlerei <http://www.webtischlerei.de>
 */
class Moraso_Module_Cart_Article_Info_Class extends Moraso_Module_Abstract
{
    protected $_allowEdit = false;

    protected function _main()
    {
        $nf = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);

        $article = Aitsu_Persistence_ArticleProperty::factory($this->_defaults['idartlang'])->load();

        $cart = (object) $article->cart;

        $price = $cart->price->value;

        $view->this->_cart = (object) array(
                    'sku' => $cart->sku->value,
                    'price' => $nf->formatCurrency($price, 'EUR'),
                    'tax_class' => $cart->tax_class->value,
                    'tax' => $nf->formatCurrency($cart->tax_class->value * $price / 100, 'EUR'),
                    'price_net' => $nf->formatCurrency($price - $tax, 'EUR')
        );

        $view->this->_idartlang = $this->_defaults['idartlang'];
    }
}<commit_msg>Modul "Cart.Article.Info" auf neuesten Stand gebracht<commit_after><?php

/**
 * @author <NAME> <<EMAIL>>
 * @copyright (c) 2013, webtischlerei <http://www.webtischlerei.de>
 */
class Moraso_Module_Cart_Article_Info_Class extends Moraso_Module_Abstract
{
    protected $_allowEdit = false;

    protected function _main()
    {
        $nf = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);

        $article = Aitsu_Persistence_ArticleProperty::factory($this->_defaults['idartlang'])->load();

        $cart = (object) $article->cart;

        $price = $cart->price->value;

        $view->this->_cart = (object) array(
            'sku' => $cart->sku->value,
            'price' => $nf->formatCurrency($price, 'EUR'),
            'tax_class' => $cart->tax_class->value,
            'tax' => $nf->formatCurrency($cart->tax_class->value * $price / 100, 'EUR'),
            'price_net' => $nf->formatCurrency($price - $tax, 'EUR')
            );

        $view->this->_idartlang = $this->_defaults['idartlang'];
    }
}
{'fraction_non_alphanumeric': 0.17077798861480076, 'fraction_numerical': 0.006641366223908918, 'mean_word_length': 2.5267558528428093, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6980398', 'n_tokens_mistral': 707, 'n_tokens_neox': 653, 'n_words': 107}