src/Eccube/Controller/Admin/Product/ProductClassController.php 1 location
|
@@ 164-170 (lines=7) @@
|
| 161 |
|
|
| 162 |
|
// 商品税率が設定されている場合、商品税率を項目に設定 |
| 163 |
|
$BaseInfo = $app['eccube.repository.base_info']->get(); |
| 164 |
|
if ($BaseInfo->getOptionProductTaxRule() == Constant::ENABLED) { |
| 165 |
|
foreach ($ProductClasses as $class) { |
| 166 |
|
if ($class->getTaxRule() && !$class->getTaxRule()->getDelFlg()) { |
| 167 |
|
$class->setTaxRate($class->getTaxRule()->getTaxRate()); |
| 168 |
|
} |
| 169 |
|
} |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
|
| 173 |
|
// 登録済み商品規格と空の商品規格をマージ |
src/Eccube/Controller/Admin/Product/ProductController.php 1 location
|
@@ 193-195 (lines=3) @@
|
| 190 |
|
$ProductClasses = $Product->getProductClasses(); |
| 191 |
|
$ProductClass = $ProductClasses[0]; |
| 192 |
|
$BaseInfo = $app['eccube.repository.base_info']->get(); |
| 193 |
|
if ($BaseInfo->getOptionProductTaxRule() == Constant::ENABLED && $ProductClass->getTaxRule() && !$ProductClass->getTaxRule()->getDelFlg()) { |
| 194 |
|
$ProductClass->setTaxRate($ProductClass->getTaxRule()->getTaxRate()); |
| 195 |
|
} |
| 196 |
|
$ProductStock = $ProductClasses[0]->getProductStock(); |
| 197 |
|
} |
| 198 |
|
} |