代码之家  ›  专栏  ›  技术社区  ›  Elzo Valugi

Magento订单税务信息

  •  1
  • Elzo Valugi  · 技术社区  · 15 年前

    有人知道税收和秩序有什么关系吗?

    1 回复  |  直到 7 年前
        1
  •  10
  •   Joe Mastey    15 年前

    在计算税款后,sales\u order表中有以下字段:

    | tax_refunded                | decimal(12,4)
    | tax_canceled                | decimal(12,4)
    | base_tax_refunded           | decimal(12,4)
    | base_tax_canceled           | decimal(12,4)
    | tax_invoiced                | decimal(12,4)
    | base_tax_invoiced           | decimal(12,4)
    | shipping_tax_amount         | decimal(12,4)
    | base_shipping_tax_amount    | decimal(12,4)
    | shipping_tax_refunded       | decimal(12,4)
    | base_shipping_tax_refunded  | decimal(12,4)
    

    当您有一个order对象时,您可以使用普通的Magento getter来获取这个数据。例如。

    $taxRefunded = $order->getTaxRefunded();
    

    希望有帮助。

    谢谢, 乔