Ignore:
Timestamp:
2014/02/05 17:45:30 (10 years ago)
Author:
kimoto
Message:

#2504 SQLの条件が間違っているので修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/helper/SC_Helper_TaxRule.php

    r23230 r23334  
    168168            $table = 'dtb_tax_rule'; 
    169169            $cols = '*'; 
    170              
     170 
    171171            // 商品税率有無設定により分岐 
    172172            if(OPTION_PRODUCT_TAX_RULE == 1) { 
    173                 $where = '((product_id = 0 OR product_id = ?)' 
    174                             . ' OR (product_class_id = 0 OR product_class_id = ?))' 
    175                             . ' AND (pref_id = 0 OR pref_id = ?)' 
    176                             . ' AND (country_id = 0 OR country_id = ?)' 
    177                             . ' AND apply_date < CURRENT_TIMESTAMP' 
    178                             . ' AND del_flg = 0'; 
     173                $where = ' 
     174                        ( 
     175                            (product_id = 0 OR product_id = ?) 
     176                            AND (product_class_id = 0 OR product_class_id = ?) 
     177                        ) 
     178                    AND (pref_id = 0 OR pref_id = ?) 
     179                    AND (country_id = 0 OR country_id = ?) 
     180                    AND apply_date < CURRENT_TIMESTAMP 
     181                    AND del_flg = 0'; 
    179182                $arrVal = array($product_id, $product_class_id, $pref_id, $country_id); 
    180183            } else { 
Note: See TracChangeset for help on using the changeset viewer.