id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	modified_flg
463	受注管理 納品書の「ポイント値引」額の誤り	kishik	somebody	"http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=3935&post_id=16717&order=0&viewmode=flat&pid=16700&forum=9#forumpost16717

yuchizo様より以下の通の指摘がありました。
2.4.0rc2でも該当箇所に間違いがあることを確認しています。

{{{
受注管理で　納品書を作成すると、1ポイントx円（変換レート=x）　という設定にも関わらず、ポイント値引きは　-ポイント数　となります。

受注時の金額計算などでは　すでにポイント数×x という計算になっている為、気づきにくいのですが、納品書をよく見てみるとおかしな計算になっていることがわかります。

原因は、\data\class\SC_Fpdf.php の中でポイント値引額を計算している箇所で、ポイント数に　定数「POINT_VALUE」を乗じておらず、そのままポイント数を表示しているためでした。

以下の一文

$arrOrder[$i][3] = ""- "".number_format($this->arrDisp['use_point'] + $this->arrDisp['discount']).$monetary_unit;

こちらを

$arrOrder[$i][3] = ""- "".number_format(($this->arrDisp['use_point'] * POINT_VALUE) + $this->arrDisp['discount']).$monetary_unit;

と変更することで解決しました。
}}}"	バグ指摘	closed	中	EC-CUBE2.4.0	管理画面	2.4.0RC-2	修正済			
