SilverCommerce\TaxAdmin\Model\TaxRate
A tax rate can be added to a product and allows you to map a product to a percentage of tax.
If added to a product, the tax will then be added to the price
automatically.
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class TaxRate
extends DataObject
implements
PermissionProvider
{
- // members
- private static string $table_name = 'TaxRate';
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public void getZonesList()
- public void getCMSValidator()
- public void requireDefaultRecords()
- public void providePermissions()
- public boolean canView()
- public boolean canCreate()
- public boolean canEdit()
- public boolean canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
Members
private
- $casting
- $db
- $has_one
- $many_many
- $searchable_fields
- $summary_fields
- $table_name
Methods
public
- canCreate() — Anyone can create orders, even guest users
- canDelete() — No one should be able to delete an order once it has been created
- canEdit() — Only users with correct rights can edit
- canView() — Anyone can view tax categories
- getCMSValidator()
- getZonesList()
- providePermissions()
- requireDefaultRecords()