// Tax::initializeAddress =>Address::initialize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8700 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
b432c3fd35
commit
f8989018a7
4 files changed
+52
-78
No files matched your search
@@ -216,11 +216,11 @@ abstract class PaymentModuleCore extends Module
|
||||
$tax_calculator = new TaxCalculator();
|
||||
if (!Tax::excludeTaxeOption())
|
||||
{
|
||||
$address = Tax::initializeAddress($vat_address->id);
|
||||
$address = Address::initialize($vat_address->id);
|
||||
$id_tax_rules = (int)Product::getIdTaxRulesGroupByIdProduct((int)$product['id_product']);
|
||||
|
||||
|
||||
$tax_manager = TaxManagerFactory::getManager($vat_address, $id_tax_rules);
|
||||
$tax_calculator = $tax_manager->getTaxCalculator();
|
||||
$tax_calculator = $tax_manager->getTaxCalculator();
|
||||
}
|
||||
|
||||
$ecotaxTaxRate = 0;
|
||||
@@ -298,7 +298,7 @@ abstract class PaymentModuleCore extends Module
|
||||
|
||||
OrderDetail::saveTaxCalculatorStatic($db->Insert_ID(), $tax_calculator);
|
||||
unset($tax_calculator);
|
||||
|
||||
|
||||
// Insert discounts from cart into order_discount table
|
||||
$discounts = $cart->getDiscounts();
|
||||
$discountsList = '';
|
||||
|
||||
Reference in new issue
Block a user