src/Eccube/Controller/Admin/Product/ProductClassController.php 1 location
|
@@ 192-198 (lines=7) @@
|
189 |
|
|
190 |
|
// 商品税率が設定されている場合、商品税率を項目に設定 |
191 |
|
$BaseInfo = $app['eccube.repository.base_info']->get(); |
192 |
|
if ($BaseInfo->getOptionProductTaxRule() == Constant::ENABLED) { |
193 |
|
foreach ($ProductClasses as $class) { |
194 |
|
if ($class->getTaxRule() && !$class->getTaxRule()->getDelFlg()) { |
195 |
|
$class->setTaxRate($class->getTaxRule()->getTaxRate()); |
196 |
|
} |
197 |
|
} |
198 |
|
} |
199 |
|
|
200 |
|
// 登録済み商品規格と空の商品規格をマージ |
201 |
|
$flag = false; |
src/Eccube/Controller/Admin/Product/ProductController.php 1 location
|
@@ 255-257 (lines=3) @@
|
252 |
|
$ProductClasses = $Product->getProductClasses(); |
253 |
|
$ProductClass = $ProductClasses[0]; |
254 |
|
$BaseInfo = $app['eccube.repository.base_info']->get(); |
255 |
|
if ($BaseInfo->getOptionProductTaxRule() == Constant::ENABLED && $ProductClass->getTaxRule() && !$ProductClass->getTaxRule()->getDelFlg()) { |
256 |
|
$ProductClass->setTaxRate($ProductClass->getTaxRule()->getTaxRate()); |
257 |
|
} |
258 |
|
$ProductStock = $ProductClasses[0]->getProductStock(); |
259 |
|
} |
260 |
|
} |