insert 19.6 tva

This commit is contained in:
Etienne Roudeix
2013-09-09 11:28:02 +02:00
parent ca9ec3b089
commit 2548fb9e3c
3 changed files with 42 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
namespace Thelia\Model;
use Propel\Runtime\ActiveQuery\Criteria;
use Thelia\Model\Base\TaxRuleQuery as BaseTaxRuleQuery;
@@ -15,6 +16,16 @@ use Thelia\Model\Base\TaxRuleQuery as BaseTaxRuleQuery;
* long as it does not already exist in the output directory.
*
*/
class TaxRuleQuery extends BaseTaxRuleQuery {
class TaxRuleQuery extends BaseTaxRuleQuery
{
public function getTaxCalculatorCollection(Product $product, Country $country)
{
$search = TaxRuleCountryQuery::create()
->filterByCountry($country, Criteria::EQUAL)
->filterByTaxRuleId($product->getTaxRuleId())
->orderByPosition()
->find();
return $search;
}
} // TaxRuleQuery