silvercommerce/tax-admin
最新稳定版本:1.4.0
Composer 安装命令:
composer require silvercommerce/tax-admin
包简介
Module allowing creation of tax rates and categories in the CMS via SiteConfig
README 文档
README
Adds ability to create and edit tax rates and categories in the CMS (via siteconfig).
This allows for flexible tax configurations (meaning that you can have tax rates for different countries, zones, etc).
You can then map these categories (or rates) to products, line items (in invoices) etc and use them in your tax calculations.
Dependancies
Assigning Taxes to Zones
By default this module integrates with the
GeoZones
module. This allows you to assign zones to TaxRate objects.
You can then use TaxCategory::getValidRate() to return the
most appropriate TaxRate for this category, based either on
the provided locale and zone, of the system default. EG:
use SilverCommerce\TaxAdmin\Model\TaxCategory; // Get the tax category you want $cateogry = TaxCategory::get()->byID(1); // Find if we have a valid rate for Gloucestershire in the UK (GB) $tax_rate = $category->getValidTax("GB", "GLS");
统计信息
- 总下载量: 4.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-11-22