Ticket #2497 (closed バグ指摘: 修正済)
商品登録で、消費税率を共通設定とは異なる税率を設定して登録するとシステムエラーになる
Reported by: | kimoto | Owned by: | kimoto |
---|---|---|---|
Priority: | 中 | Milestone: | EC-CUBE2.13.2 |
Component: | 管理画面 | Version: | 2.13.1 |
Keywords: | Cc: | ||
修正済み: | yes |
Description
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=14179&forum=9
関連チケット http://svn.ec-cube.net/open_trac/ticket/2439
商品別税率機能を有効に設定している場合に、商品の新規登録で、消費税率を共通設定(基本設定)とは異なる税率を設定して登録するとシステムエラーになります。ECCUBEのバージョンは、2.13.1です。以下、障害発生時のエラーログです。2014/01/31 14:00:03 [/admin/products/product.php] Fatal error(E_USER_ERROR): DB処理でエラーが発生しました。SQL: [INSERT INTO dtb_tax_rule(calc_rule,tax_rate,tax_adjust,apply_date,member_id,update_date,tax_rule_id,country_id,pref_id,product_id,product_class_id,create_date) SELECT $1,$2,$3,$4,$5,CURRENT_TIMESTAMP,$6,$7,$8,$9,$10,CURRENT_TIMESTAMP]PlaceHolder: [array ( 0 => '1', 1 => '9', 2 => 0, 3 => '2014/01/31 14:00:03', 4 => '2', 5 => 1, 6 => 0, 7 => 0, 8 => 7, 9 => '',)]MDB2 Error: null value violates not-null constraint_doQuery: [Error message: Could not execute statement][Last executed query: EXECUTE mdb2_statement_pgsql_12549e9190c78fccd1ec65604f350214786752cfbb ('1', '9', 0, '2014/01/31 14:00:03', '2', 1, 0, 0, 7, NULL)][Native message: ERROR: null value in column "product_class_id" violates not-null constraint] on [/var/eccube_test/eccube-2.13.1/data/class/SC_Query.php(1087)] from 192.168.9.108
Change History
comment:2 Changed 9 years ago by kimoto
システムエラーになるのはpostgresのみ mysqlはシステムエラーにはならない
自称としては消費税率を共通設定とは異なる税率を設定しても登録されない 商品編集すれば正しく登録される
原因はここ
SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'], $arrList['product_id'], $arrList['product_class_id']);
comment:3 Changed 9 years ago by kimoto
- Status changed from new to closed
- Resolution set to 修正済
r23342 にて修正
comment:4 Changed 9 years ago by h_yoshimoto
- Status changed from closed to reopened
- 修正済み set
- Resolution 修正済 deleted
こちら対応ありがとうございます。
ステータスにつきましてはassignでお願いいたします。
修正が完了しましたら、修正済のフラグをチェック下さいませ。
詳しくは下記を参考下さい。
http://svn.ec-cube.net/open_trac/wiki/%E9%96%8B%E7%99%BA%E6%89%8B%E9%A0%86
Note: See
TracTickets for help on using
tickets.