Skip to content

Не учитываются добавочные налоги (Sales TAX) для товаров #314

Description

@kostyasorokin

Здравствуйте. На трех сайтах (последние версии Shop Script и платформы), при любом модуле оплате (Stripe, PayPal) не учитывается добавочная налоговая ставка.

При оформлении тестового заказа стоимостью $1 добавляется налог $0.7, и итоговый платеж должен составлять $1.07, но после того как происходит переадресация на страницу оплаты платежной системы сумма меняется на $1.

Такое ощущение что передается переменная суммы без налога, а не итоговой суммы (сумма + налог).

21 июня 2020 14:00 я написал в техподдержку на webasyst.ru, предоставил все необходимые логи, после чего 23 июня 2020 13:55 Webasyst Support Team был дан ответ:

Да, повторили подобное поведение на своих установках. Передали всю информацию о проблеме разработчикам, спасибо. Дождитесь, пожалуйста, очередного обновления приложения в Инсталлере.

——
С уважением,
Максим

C того времени ошибка до сих пор не исправлена. Скажите пожалуйста, как можно исправить ошибку?

round_total.error.log:

2020-06-21 20:44:40 178.150.159.00
array (
  'id' => '104',
  'order_data' => 
  array (
    'id_str' => '#100104',
    'id' => '104',
    'datetime' => '2020-06-21 20:44:37',
    'update_datetime' => NULL,
    'paid_datetime' => NULL,
    'contact_id' => '1',
    'currency' => 'USD',
    'discount' => 0.0,
    'tax' => 0.070000000000000007,
    'shipping' => 0.0,
    'payment_name' => 'Credit or Debit Card / Apple Pay / Google Pay',
    'billing_address' => 
    array (
      'firstname' => '',
      'lastname' => '',
      'country' => 'usa',
      'region' => 'FL',
      'city' => 'key biscayne',
      'street' => 'Test',
      'zip' => '33076',
      'recipients-name' => 'Konstantin',
      'recipients-phon' => NULL,
      'handwritten-car' => NULL,
      'additional-info' => NULL,
      'lng' => NULL,
      'lat' => NULL,
    ),
    'shipping_name' => 'Store pickup (SiteName)',
    'shipping_address' => 
    array (
      'firstname' => '',
      'lastname' => '',
      'country' => 'usa',
      'region' => 'FL',
      'city' => 'key biscayne',
      'street' => 'Test',
      'zip' => '33076',
      'recipients-name' => 'Konstantin',
      'recipients-phon' => NULL,
      'handwritten-car' => NULL,
      'additional-info' => NULL,
      'lng' => NULL,
      'lat' => NULL,
    ),
    'shipping_tax_rate' => NULL,
    'shipping_tax_included' => true,
    'items' => 
    array (
      0 => 
      array (
        'id' => '181',
        'parent_id' => NULL,
        'name' => 'test',
        'sku' => '',
        'tax_rate' => '7.0000',
        'tax_included' => '0',
        'description' => '',
        'price' => 1.0,
        'currency' => 'USD',
        'quantity' => 1,
        'total' => 1.0,
        'type' => 'product',
        'product_id' => '155',
        'sku_id' => '206',
        'weight' => 0.0,
        'height' => 0.0,
        'length' => 0.0,
        'width' => 0.0,
        'weight_unit' => 'kg',
        'dimensions_unit' => 'm',
        'total_discount' => 0.0,
        'discount' => 0.0,
        '_total' => 1.0,
      ),
    ),
    'comment' => '',
    'description' => 'Payment for order #100104',
    'params' => 
    array (
      'auth_code' => '5d06fc41d1e795041040cc25602da21258e',
      'auth_pin' => '8051',
      'ip' => '178.150.159.00',
      'landing' => '/',
      'payment_id' => '9',
      'payment_name' => 'Credit or Debit Card / Apple Pay / Google Pay',
      'payment_plugin' => 'stripe',
      'referer' => 'https://checkout.stripe.com/pay/cs_live_YPLaOSbiIEbK79cHBiE9QeQDxPEpTvFRjw0xSiClG4I2ImfauFqYJTTs',
      'referer_host' => 'checkout.stripe.com',
      'sales_channel' => 'storefront:sitename.com',
      'shipping_address.city' => 'key biscayne',
      'shipping_address.country' => 'usa',
      'shipping_address.recipients-name' => 'Konstantin',
      'shipping_address.region' => 'FL',
      'shipping_address.street' => 'Test',
      'shipping_address.zip' => '33076',
      'shipping_currency' => 'USD',
      'shipping_currency_rate' => '1',
      'shipping_est_delivery' => '',
      'shipping_id' => '3',
      'shipping_name' => 'Store pickup (SiteName)',
      'shipping_plugin' => 'pickup',
      'shipping_rate_id' => '1',
      'shipping_tax_id' => '',
      'signup_url' => '',
      'storefront' => 'sitename.com',
      'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15',
      'shipping_tax_percent' => NULL,
      'shipping_tax_included' => NULL,
    ),
    'tax_included' => false,
    'total' => 1.0,
  ),
  '_error' => 0.070000000000000062,
)

2020-06-21 20:44:40 178.150.159.00
array (
  'id' => '104',
  'order_data' => 
  array (
    'id_str' => '#100104',
    'id' => '104',
    'datetime' => '2020-06-21 20:44:37',
    'update_datetime' => NULL,
    'paid_datetime' => NULL,
    'contact_id' => '1',
    'currency' => 'USD',
    'discount' => 0.0,
    'tax' => 0.070000000000000007,
    'shipping' => 0.0,
    'payment_name' => 'Credit or Debit Card / Apple Pay / Google Pay',
    'billing_address' => 
    array (
      'firstname' => '',
      'lastname' => '',
      'country' => 'usa',
      'region' => 'FL',
      'city' => 'key biscayne',
      'street' => 'Test',
      'zip' => '33076',
      'recipients-name' => 'Konstantin',
      'recipients-phon' => NULL,
      'handwritten-car' => NULL,
      'additional-info' => NULL,
      'lng' => NULL,
      'lat' => NULL,
    ),
    'shipping_name' => 'Store pickup (SiteName)',
    'shipping_address' => 
    array (
      'firstname' => '',
      'lastname' => '',
      'country' => 'usa',
      'region' => 'FL',
      'city' => 'key biscayne',
      'street' => 'Test',
      'zip' => '33076',
      'recipients-name' => 'Konstantin',
      'recipients-phon' => NULL,
      'handwritten-car' => NULL,
      'additional-info' => NULL,
      'lng' => NULL,
      'lat' => NULL,
    ),
    'shipping_tax_rate' => NULL,
    'shipping_tax_included' => true,
    'items' => 
    array (
      0 => 
      array (
        'id' => '181',
        'parent_id' => NULL,
        'name' => 'test',
        'sku' => '',
        'tax_rate' => '7.0000',
        'tax_included' => '0',
        'description' => '',
        'price' => 1.0,
        'currency' => 'USD',
        'quantity' => 1,
        'total' => 1.0,
        'type' => 'product',
        'product_id' => '155',
        'sku_id' => '206',
        'weight' => 0.0,
        'height' => 0.0,
        'length' => 0.0,
        'width' => 0.0,
        'weight_unit' => 'kg',
        'dimensions_unit' => '',
        'total_discount' => 0.0,
        'discount' => 0.0,
        '_total' => 1.0,
      ),
    ),
    'comment' => '',
    'description' => 'Payment for order #100104',
    'params' => 
    array (
      'auth_code' => '5d06fc41d1e795041040cc25602da21258e',
      'auth_pin' => '8051',
      'ip' => '178.150.159.00',
      'landing' => '/',
      'payment_id' => '9',
      'payment_name' => 'Credit or Debit Card / Apple Pay / Google Pay',
      'payment_plugin' => 'stripe',
      'referer' => 'https://checkout.stripe.com/pay/cs_live_YPLaOSbiIEbK79cHBiE9QeQDxPEpTvFRjw0xSiClG4I2ImfauFqYJTTs',
      'referer_host' => 'checkout.stripe.com',
      'sales_channel' => 'storefront:sitename.com',
      'shipping_address.city' => 'key biscayne',
      'shipping_address.country' => 'usa',
      'shipping_address.recipients-name' => 'Konstantin',
      'shipping_address.region' => 'FL',
      'shipping_address.street' => 'Test',
      'shipping_address.zip' => '33076',
      'shipping_currency' => 'USD',
      'shipping_currency_rate' => '1',
      'shipping_est_delivery' => '',
      'shipping_id' => '3',
      'shipping_name' => 'Store pickup (SiteName)',
      'shipping_plugin' => 'pickup',
      'shipping_rate_id' => '1',
      'shipping_tax_id' => '',
      'signup_url' => '',
      'storefront' => 'sitename.com',
      'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15',
      'shipping_tax_percent' => NULL,
      'shipping_tax_included' => NULL,
    ),
    'weight_unit' => 'kg',
    'tax_included' => false,
    'total' => 1.0,
  ),
  '_error' => 0.070000000000000062,
)

2020-06-21 20:44:40 178.150.159.00
array (
  'id' => '104',
  'order_data' => 
  array (
    'id_str' => '#100104',
    'id' => '104',
    'datetime' => '2020-06-21 20:44:37',
    'update_datetime' => NULL,
    'paid_datetime' => NULL,
    'contact_id' => '1',
    'currency' => 'USD',
    'discount' => 0,
    'tax' => 0.070000000000000007,
    'shipping' => 0.0,
    'payment_name' => 'Credit or Debit Card / Apple Pay / Google Pay',
    'billing_address' => 
    array (
      'firstname' => '',
      'lastname' => '',
      'country' => 'usa',
      'region' => 'FL',
      'city' => 'key biscayne',
      'street' => 'Test',
      'zip' => '33076',
      'recipients-name' => 'Konstantin',
      'recipients-phon' => NULL,
      'handwritten-car' => NULL,
      'additional-info' => NULL,
      'lng' => NULL,
      'lat' => NULL,
    ),
    'shipping_name' => 'Store pickup (SiteName)',
    'shipping_address' => 
    array (
      'firstname' => '',
      'lastname' => '',
      'country' => 'usa',
      'region' => 'FL',
      'city' => 'key biscayne',
      'street' => 'Test',
      'zip' => '33076',
      'recipients-name' => 'Konstantin',
      'recipients-phon' => NULL,
      'handwritten-car' => NULL,
      'additional-info' => NULL,
      'lng' => NULL,
      'lat' => NULL,
    ),
    'shipping_tax_rate' => NULL,
    'shipping_tax_included' => true,
    'items' => 
    array (
      0 => 
      array (
        'id' => '181',
        'parent_id' => NULL,
        'name' => 'test',
        'sku' => '',
        'tax_rate' => '7.0000',
        'tax_included' => '0',
        'description' => '',
        'price' => 1.0,
        'currency' => 'USD',
        'quantity' => 1,
        'total' => 1.0,
        'type' => 'product',
        'product_id' => '155',
        'sku_id' => '206',
        'weight' => 0.0,
        'height' => 0.0,
        'length' => 0.0,
        'width' => 0.0,
        'weight_unit' => 'kg',
        'dimensions_unit' => 'm',
        'total_discount' => 0,
        'discount' => 0,
        '_total' => 1.0,
      ),
    ),
    'comment' => '',
    'description' => 'Payment for order #100104',
    'params' => 
    array (
      'auth_code' => '5d06fc41d1e795041040cc25602da21258e',
      'auth_pin' => '8051',
      'ip' => '178.150.159.00',
      'landing' => '/',
      'payment_id' => '9',
      'payment_name' => 'Credit or Debit Card / Apple Pay / Google Pay',
      'payment_plugin' => 'stripe',
      'referer' => 'https://checkout.stripe.com/pay/cs_live_YPLaOSbiIEbK79cHBiE9QeQDxPEpTvFRjw0xSiClG4I2ImfauFqYJTTs',
      'referer_host' => 'checkout.stripe.com',
      'sales_channel' => 'storefront:sitename.com',
      'shipping_address.city' => 'key biscayne',
      'shipping_address.country' => 'usa',
      'shipping_address.recipients-name' => 'Konstantin',
      'shipping_address.region' => 'FL',
      'shipping_address.street' => 'Test',
      'shipping_address.zip' => '33076',
      'shipping_currency' => 'USD',
      'shipping_currency_rate' => '1',
      'shipping_est_delivery' => '',
      'shipping_id' => '3',
      'shipping_name' => 'Store pickup (SiteName)',
      'shipping_plugin' => 'pickup',
      'shipping_rate_id' => '1',
      'shipping_tax_id' => '',
      'signup_url' => '',
      'storefront' => 'sitename.com',
      'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15',
      'shipping_tax_percent' => NULL,
      'shipping_tax_included' => NULL,
    ),
    'tax_included' => false,
    'total' => 1.0,
  ),
  '_error' => 0.070000000000000062,
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions