src/Eccube/Controller/Admin/Product/ProductController.php 1 location
|
@@ 254-256 (lines=3) @@
|
| 251 |
|
$ProductClasses = $Product->getProductClasses(); |
| 252 |
|
$ProductClass = $ProductClasses[0]; |
| 253 |
|
$BaseInfo = $app['eccube.repository.base_info']->get(); |
| 254 |
|
if ($BaseInfo->getOptionProductTaxRule() == Constant::ENABLED && $ProductClass->getTaxRule() && !$ProductClass->getTaxRule()->getDelFlg()) { |
| 255 |
|
$ProductClass->setTaxRate($ProductClass->getTaxRule()->getTaxRate()); |
| 256 |
|
} |
| 257 |
|
$ProductStock = $ProductClasses[0]->getProductStock(); |
| 258 |
|
} |
| 259 |
|
} |
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; |