src/Eccube/Controller/Admin/Product/ProductClassController.php 1 location
|
@@ 275-281 (lines=7) @@
|
| 272 |
|
$mergeProductClasses = array(); |
| 273 |
|
|
| 274 |
|
// 商品税率が設定されている場合、商品税率を項目に設定 |
| 275 |
|
if ($this->BaseInfo->getOptionProductTaxRule() == Constant::ENABLED) { |
| 276 |
|
foreach ($ProductClasses as $class) { |
| 277 |
|
if ($class->getTaxRule() && !$class->getTaxRule()->getDelFlg()) { |
| 278 |
|
$class->setTaxRate($class->getTaxRule()->getTaxRate()); |
| 279 |
|
} |
| 280 |
|
} |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
// 登録済み商品規格と空の商品規格をマージ |
| 284 |
|
$flag = false; |
src/Eccube/Controller/Admin/Product/ProductController.php 1 location
|
@@ 375-377 (lines=3) @@
|
| 372 |
|
if (!$has_class) { |
| 373 |
|
$ProductClasses = $Product->getProductClasses(); |
| 374 |
|
$ProductClass = $ProductClasses[0]; |
| 375 |
|
if ($this->BaseInfo->getOptionProductTaxRule() == Constant::ENABLED && $ProductClass->getTaxRule() && !$ProductClass->getTaxRule()->getDelFlg()) { |
| 376 |
|
$ProductClass->setTaxRate($ProductClass->getTaxRule()->getTaxRate()); |
| 377 |
|
} |
| 378 |
|
$ProductStock = $ProductClasses[0]->getProductStock(); |
| 379 |
|
} |
| 380 |
|
} |