stanley-king 8 年 前
コミット
00ab86c7d7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      admin/templates/default/order.index.php

+ 1 - 1
admin/templates/default/order.index.php

@@ -98,7 +98,7 @@
         <td class="align-center"><?php
             if(intval($order['goods_amount'] * 100 + 0.5) > 0) {
                 $discount = $order['pd_amount'] / $order['goods_amount'];
-                $discount = $discount * 100;
+                $discount = intval($discount * 10000) / 100;
             } else {
                 $discount = 0;
             }