/** * Initializes the object. * * @param \Aimeos\MShop\Context\Item\Iface $context Context object */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context) { parent::__construct($context); $this->setResourceName('db-price'); /** mshop/price/taxflag * Configuration setting if prices are inclusive or exclusive tax * * In Aimeos, prices can be entered either completely with or without tax. The * default is that prices contains tax. You must specifiy the tax rate for each * prices to prevent wrong calculations. * * @param boolean True if gross prices are used, false for net prices * @category Developer * @category User * @since 2016.02 */ $this->taxflag = $context->getConfig()->get('mshop/price/taxflag', true); }
/** * Initializes the object. * * @param \Aimeos\MShop\Context\Item\Iface $context Context object */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context) { parent::__construct($context); $this->setResourceName('db-price'); }