Index: /branches/version-2_13_0/data/Smarty/templates/admin/products/product_class.tpl
===================================================================
--- /branches/version-2_13_0/data/Smarty/templates/admin/products/product_class.tpl (revision 23194)
+++ /branches/version-2_13_0/data/Smarty/templates/admin/products/product_class.tpl (revision 23215)
@@ -204,5 +204,7 @@
(円) |
(円)* |
+
消費税率(%)* |
+
商品種別* |
ダウンロード ファイル名 上限文字 |
@@ -275,4 +277,5 @@
id="_" />
+
@@ -282,4 +285,5 @@
id="_" />
|
+
Index: /branches/version-2_13_0/data/Smarty/templates/admin/products/product_class_confirm.tpl
===================================================================
--- /branches/version-2_13_0/data/Smarty/templates/admin/products/product_class_confirm.tpl (revision 23103)
+++ /branches/version-2_13_0/data/Smarty/templates/admin/products/product_class_confirm.tpl (revision 23215)
@@ -64,5 +64,7 @@
| (円) |
(円) |
+
消費税率(%) |
+
商品種別 |
ダウンロードファイル名 |
@@ -93,6 +95,8 @@
|
+
|
+
Index: /branches/version-2_13_0/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php
===================================================================
--- /branches/version-2_13_0/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php (revision 23126)
+++ /branches/version-2_13_0/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php (revision 23215)
@@ -199,5 +199,7 @@
$objFormParam->addParam(NORMAL_PRICE_TITLE, 'price01', PRICE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam(SALE_PRICE_TITLE, 'price02', PRICE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
- $objFormParam->addParam('消費税率', 'tax_rate', PERCENTAGE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
+ if(OPTION_PRODUCT_TAX_RULE) {
+ $objFormParam->addParam('消費税率', 'tax_rate', PERCENTAGE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
+ }
$objFormParam->addParam('商品種別', 'product_type_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
$objFormParam->addParam('削除フラグ', 'del_flg', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
@@ -279,5 +281,7 @@
// 税情報登録/更新
- SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'][$i], $arrPC['product_id'], $arrPC['product_class_id']);
+ if (OPTION_PRODUCT_TAX_RULE) {
+ SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'][$i], $arrPC['product_id'], $arrPC['product_class_id']);
+ }
}
@@ -350,5 +354,5 @@
* 消費税率の必須チェック
*/
- if (SC_Utils_Ex::isBlank($arrValues['tax_rate'][$i])) {
+ if (OPTION_PRODUCT_TAX_RULE && SC_Utils_Ex::isBlank($arrValues['tax_rate'][$i])) {
$arrErr['tax_rate'][$i] = '※ 消費税率が入力されていません。 ';
}
@@ -498,7 +502,10 @@
$arrValues['del_flg'] = '0';
}
+
// 消費税率を設定
- $arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrValues['product_id'], $arrValues['product_class_id']);
- $arrValues['tax_rate'] = $arrRet['tax_rate'];
+ if (OPTION_PRODUCT_TAX_RULE) {
+ $arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrValues['product_id'], $arrValues['product_class_id']);
+ $arrValues['tax_rate'] = $arrRet['tax_rate'];
+ }
$arrMergeProductsClass[] = $arrValues;
|