Changeset 23215
- Timestamp:
- 2013/09/11 14:39:25 (13 years ago)
- Location:
- branches/version-2_13_0/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13_0/data/Smarty/templates/admin/products/product_class.tpl
r23194 r23215 204 204 <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th> 205 205 <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th> 206 <!--{if $smarty.const.OPTION_PRODUCT_TAX_RULE}--> 206 207 <th>消費税率(%)<span class="attention">*</span></th> 208 <!--{/if}--> 207 209 <th>商品種別<span class="attention">*</span></th> 208 210 <th>ダウンロード<br />ファイル名<span class="red"><br />上限<!--{$smarty.const.STEXT_LEN}-->文字</span></th> … … 275 277 <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" size="6" class="box6" maxlength="<!--{$arrForm[$key].length}-->" <!--{if $arrErr[$key][$index] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> id="<!--{$key}-->_<!--{$index}-->" /> 276 278 </td> 279 <!--{if $smarty.const.OPTION_PRODUCT_TAX_RULE}--> 277 280 <td class="center"> 278 281 <!--{assign var=key value="tax_rate"}--> … … 282 285 <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" size="6" class="box6" maxlength="<!--{$arrForm[$key].length}-->" <!--{if $arrErr[$key][$index] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> id="<!--{$key}-->_<!--{$index}-->" /> 283 286 </td> 287 <!--{/if}--> 284 288 <td class="class-product-type"> 285 289 <!--{assign var=key value="product_type_id"}--> -
branches/version-2_13_0/data/Smarty/templates/admin/products/product_class_confirm.tpl
r23103 r23215 64 64 <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th> 65 65 <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)</th> 66 <!--{if $smarty.const.OPTION_PRODUCT_TAX_RULE}--> 66 67 <th>消費税率(%)</th> 68 <!--{/if}--> 67 69 <th>商品種別</th> 68 70 <th>ダウンロードファイル名</th> … … 93 95 <!--{assign var=key value="price02"}--> 94 96 <td class="right"><!--{$arrForm[$key].value[$index]|h}--></td> 97 <!--{if $smarty.const.OPTION_PRODUCT_TAX_RULE}--> 95 98 <!--{assign var=key value="tax_rate"}--> 96 99 <td class="right"><!--{$arrForm[$key].value[$index]|h}--></td> 100 <!--{/if}--> 97 101 <!--{assign var=key value="product_type_id"}--> 98 102 <td class="right"> -
branches/version-2_13_0/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php
r23126 r23215 199 199 $objFormParam->addParam(NORMAL_PRICE_TITLE, 'price01', PRICE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 200 200 $objFormParam->addParam(SALE_PRICE_TITLE, 'price02', PRICE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 201 $objFormParam->addParam('消費税率', 'tax_rate', PERCENTAGE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 201 if(OPTION_PRODUCT_TAX_RULE) { 202 $objFormParam->addParam('消費税率', 'tax_rate', PERCENTAGE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 203 } 202 204 $objFormParam->addParam('商品種別', 'product_type_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 203 205 $objFormParam->addParam('削除フラグ', 'del_flg', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); … … 279 281 280 282 // 税情報登録/更新 281 SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'][$i], $arrPC['product_id'], $arrPC['product_class_id']); 283 if (OPTION_PRODUCT_TAX_RULE) { 284 SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'][$i], $arrPC['product_id'], $arrPC['product_class_id']); 285 } 282 286 } 283 287 … … 350 354 * 消費税率の必須チェック 351 355 */ 352 if ( SC_Utils_Ex::isBlank($arrValues['tax_rate'][$i])) {356 if (OPTION_PRODUCT_TAX_RULE && SC_Utils_Ex::isBlank($arrValues['tax_rate'][$i])) { 353 357 $arrErr['tax_rate'][$i] = '※ 消費税率が入力されていません。<br />'; 354 358 } … … 498 502 $arrValues['del_flg'] = '0'; 499 503 } 504 500 505 // 消費税率を設定 501 $arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrValues['product_id'], $arrValues['product_class_id']); 502 $arrValues['tax_rate'] = $arrRet['tax_rate']; 506 if (OPTION_PRODUCT_TAX_RULE) { 507 $arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrValues['product_id'], $arrValues['product_class_id']); 508 $arrValues['tax_rate'] = $arrRet['tax_rate']; 509 } 503 510 504 511 $arrMergeProductsClass[] = $arrValues;
Note: See TracChangeset
for help on using the changeset viewer.
