Jump to content

Edit History

gjferrando

gjferrando

\classes\PaymentModule.php
Agregar debajo de:
        $order->total_discounts = $order->total_discounts_tax_incl;

        $order->total_importcost_tax_excl = Tools::ps_round(
            (float) $cart->getTotalImportCost(false),
            $computingPrecision
        );
        $order->total_importcost_tax_incl = Tools::ps_round(
            (float) $cart->getTotalImportCost(true),
            $computingPrecision
        );
        $order->total_importcost = $order->total_importcost_tax_incl;


Agregar columnas a la tabla = ps_orders

  `total_importcost` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `total_importcost_tax_incl` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `total_importcost_tax_excl` decimal(20,6) NOT NULL DEFAULT '0.000000',

 

gjferrando

gjferrando

\classes\PaymentModule.php
Se agrega debajo de:
        $order->total_discounts = $order->total_discounts_tax_incl;

        $order->total_importcost_tax_excl = Tools::ps_round(
            (float) $cart->getTotalImportCost(false),
            $computingPrecision
        );
        $order->total_importcost_tax_incl = Tools::ps_round(
            (float) $cart->getTotalImportCost(true),
            $computingPrecision
        );
        $order->total_importcost = $order->total_importcost_tax_incl;


Agregar columnas a la tabla = ps_orders

  `total_importcost` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `total_importcost_tax_incl` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `total_importcost_tax_excl` decimal(20,6) NOT NULL DEFAULT '0.000000',

 

gjferrando

gjferrando

\classes\PaymentModule.php
Se agrega debajo de:
        $order->total_discounts = $order->total_discounts_tax_incl;

        $order->total_importcost_tax_excl = Tools::ps_round(
            (float) $cart->getTotalImportCost(false),
            $computingPrecision
        );
        $order->total_importcost_tax_incl = Tools::ps_round(
            (float) $cart->getTotalImportCost(true),
            $computingPrecision
        );
        $order->total_importcost = $order->total_importcost_tax_incl;

 

CREATE TABLE IF NOT EXISTS `ps_orders` (
  `total_importcost` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `total_importcost_tax_incl` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `total_importcost_tax_excl` decimal(20,6) NOT NULL DEFAULT '0.000000',
) ENGINE=InnoDB CHARSET=utf8mb4;

 

gjferrando

gjferrando

\classes\PaymentModule.php
Se agrega debajo de:
        $order->total_discounts = $order->total_discounts_tax_incl;

        $order->total_importcost_tax_excl = Tools::ps_round(
            (float) $cart->getTotalImportCost(false),
            $computingPrecision
        );
        $order->total_importcost_tax_incl = Tools::ps_round(
            (float) $cart->getTotalImportCost(true),
            $computingPrecision
        );
        $order->total_importcost = $order->total_importcost_tax_incl;

 

gjferrando

gjferrando

\classes\PaymentModule.php
Se agrega debajo de:
        $order->total_discounts = $order->total_discounts_tax_incl;

        $order->total_importcost_tax_excl = Tools::ps_round(
            (float) $cart->getTotalImportCost(false),
            $computingPrecision
        );
        $order->total_importcost_tax_incl = Tools::ps_round(
            (float) $cart->getTotalImportCost(true),
            $computingPrecision
        );
        $order->total_importcost = $order->total_importcost_tax_incl;

 

×
×
  • Create New...