バージョン選択

フォーラム

メニュー

オンライン状況

42 人のユーザが現在オンラインです。 (34 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 42
もっと...

サイト内検索

バグ報告 > 管理機能 > 納品書の2枚目以降で壊れる

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
ゲスト
投稿日時: 2012/9/3 17:41
対応状況: −−−
Re: 納品書の2枚目以降で壊れる
取り急ぎ、、、

1.2.12-devにて現象を確認しました。。。

2.data/class/helper/SC_Helper_FPDI.php
  function FancyTable($header, $data, $w){}
  内の
  $y = $this->y;
  $this->y = $y;
  をコメントアウトすることで、『多ページ』での「無駄に印刷」は無くなりました。

3.2.12.0でも有効かどうかは、未確認です。

4.また、該当コードの本来の意図までは、まだ、追えていないので「コメントアウト」による、他の弊害が発生するかもしれません。。。


    function FancyTable($header, $data, $w) {
        // Colors, line width and bold font
        $this->SetFillColor(216, 216, 216);
        $this->SetTextColor(0);
        $this->SetDrawColor(0, 0, 0);
        $this->SetLineWidth(.3);
        $this->SetFont('', 'B');
        // Header
        for ($i = 0; $i < count($header); $i++) {
            $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1);
        }
        $this->Ln();
        // Color and font restoration
        $this->SetFillColor(235, 235, 235);
        $this->SetTextColor(0);
        $this->SetFont('');
        // Data
        $fill = 0;
        $h = 4;
        foreach ($data as $row) {
            $h = 4;
            $i = 0;
            // $y = $this->y;
            $this->Cell(5, $h, '', 0, 0, '', 0, '');
            foreach ($row as $col) {
                // $this->y = $y;
                // FIXME 汎用的ではない処理。この指定は呼び出し元で行うようにしたい。
                if ($i == 0) {
                    $align = 'L';
                } else {
                    $align = 'R';
                }
                $h = $this->SJISMultiCellForFancyTable($w[$i], $h, $col, 1, $align, $fill, 0);
                $i++;
            }
            $this->Ln();
            $fill = !$fill;
        }
        $this->Cell(5, $h, '', 0, 0, '', 0, '');
        $this->Cell(array_sum($w), 0, '', 'T');
        $this->SetFillColor(255);
    }

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   納品書の2枚目以降で壊れる Aichi 2012/9/3 10:55
   » Re: 納品書の2枚目以降で壊れる ゲスト 2012/9/3 17:41
       Re: 納品書の2枚目以降で壊れる AMUAMU 2012/9/3 18:29

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,099名です
総投稿数は110,033件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1649
8
red
1570
9
mcontact
1297
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.