<commit_before><?php

/*
 * This file is part of the Harvest Cloud package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace HarvestCloud\DoubleEntryBundle\Entity\Journal;

use Doctrine\ORM\Mapping as ORM;

/**
 * HubHubFeeInvoiceJournal
 *
 * @author <NAME> <<EMAIL>>
 * @since  2013-02-23
 *
 * @ORM\Entity
 */
class HubHubFeeInvoiceJournal extends HubFeeInvoiceJournal
{
    /**
     * post()
     *
     * @author <NAME> <<EMAIL>>
     * @since  2013-02-23
     */
    public function post()
    {
        // Sales Posting
        $salesPosting = new \HarvestCloud\DoubleEntryBundle\Entity\Posting();
        $salesPosting->setAccount($this->getInvoice()->getHub()->getSalesAccount());
        $salesPosting->setAmount($this->getInvoice()->getAmount());

        $this->addPosting($salesPosting);

        // A/R Posting
        $arPosting = new \HarvestCloud\DoubleEntryBundle\Entity\Posting();
        $arPosting->setAccount($this->getInvoice()->getHub()->getArPrePaymentAccount());
        $arPosting->setAmount(-1*$this->getInvoice()->getAmount());

        $this->addPosting($arPosting);
    }
}<commit_msg>Now posting HubFeeInvoice to Hub AR account instead of AS PrePayment account<commit_after><?php

/*
 * This file is part of the Harvest Cloud package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace HarvestCloud\DoubleEntryBundle\Entity\Journal;

use Doctrine\ORM\Mapping as ORM;

/**
 * HubHubFeeInvoiceJournal
 *
 * @author <NAME> <<EMAIL>>
 * @since  2013-02-23
 *
 * @ORM\Entity
 */
class HubHubFeeInvoiceJournal extends HubFeeInvoiceJournal
{
    /**
     * post()
     *
     * @author <NAME> <<EMAIL>>
     * @since  2013-02-23
     */
    public function post()
    {
        // Sales Posting
        $salesPosting = new \HarvestCloud\DoubleEntryBundle\Entity\Posting();
        $salesPosting->setAccount($this->getInvoice()->getHub()->getSalesAccount());
        $salesPosting->setAmount($this->getInvoice()->getAmount());

        $this->addPosting($salesPosting);

        // A/R Posting
        $arPosting = new \HarvestCloud\DoubleEntryBundle\Entity\Posting();
        $arPosting->setAccount($this->getInvoice()->getHub()->getAccountsReceivableAccount());
        $arPosting->setAmount(-1*$this->getInvoice()->getAmount());

        $this->addPosting($arPosting);
    }
}
{'fraction_non_alphanumeric': 0.1444043321299639, 'fraction_numerical': 0.01363818692338548, 'mean_word_length': 3.241496598639456, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3421633', 'n_tokens_mistral': 794, 'n_tokens_neox': 757, 'n_words': 153}