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