ltsecurityinc安防产品在线商城代码
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace JR\NetSuite\Model\Config\Source;
|
||||
|
||||
class Taxclass implements \Magento\Framework\Option\ArrayInterface
|
||||
{
|
||||
protected $taxClass;
|
||||
|
||||
public function __construct(
|
||||
\Magento\Tax\Model\TaxClass\Source\Product $taxClass
|
||||
) {
|
||||
$this->taxClass = $taxClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function toOptionArray()
|
||||
{
|
||||
return $this->taxClass->getAllOptions();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user