Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Fpdf.php

    r22567 r22796  
    3030define('PDF_TEMPLATE_REALDIR', TEMPLATE_ADMIN_REALDIR . 'pdf/'); 
    3131 
    32 class SC_Fpdf extends SC_Helper_FPDI  
    33 { 
    34     function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') 
    35     { 
     32class SC_Fpdf extends SC_Helper_FPDI { 
     33    function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') { 
    3634        $this->FPDF(); 
    3735        // デフォルトの設定 
     
    6967    } 
    7068 
    71     function setData($arrData) 
    72     { 
     69    function setData($arrData) { 
    7370        $this->arrData = $arrData; 
    7471 
     
    9693    } 
    9794 
    98     function setShopData() 
    99     { 
     95    function setShopData() { 
    10096        // ショップ情報 
    10197 
     
    134130    } 
    135131 
    136     function setMessageData() 
    137     { 
     132    function setMessageData() { 
    138133        // メッセージ 
    139134        $this->lfText(27, 70, $this->arrData['msg1'], 8);  //メッセージ1 
     
    144139    } 
    145140 
    146     function setOrderData() 
    147     { 
     141    function setOrderData() { 
    148142        $arrOrder = array(); 
    149143        // DBから受注情報を読み込む 
     
    184178 
    185179            // 税込金額(単価) 
    186             $data[1] = SC_Helper_DB_Ex::sfCalcIncTax($this->arrDisp['price'][$i], $this->arrDisp['tax_rate'][$i], $this->arrDisp['tax_rule'][$i]); 
     180            $data[1] = SC_Helper_DB_Ex::sfCalcIncTax($this->arrDisp['price'][$i]); 
    187181 
    188182            // 小計(商品毎) 
     
    270264     * @return string 変更後の文字列 
    271265     */ 
    272     function setEtcData() 
    273     { 
     266    function setEtcData() { 
    274267        $this->Cell(0, 10, '', 0, 1, 'C', 0, ''); 
    275268        $this->SetFont('Gothic', 'B', 9); 
    276269        $this->MultiCell(0, 6, '< 備考 >', 'T', 2, 'L', 0, ''); 
    277270        $this->SetFont('SJIS', '', 8); 
    278         $text = SC_Utils_Ex::rtrim($this->arrData['etc1'] . " \n" . $this->arrData['etc2'] . " \n" . $this->arrData['etc3']); 
     271        $text = SC_Utils_Ex::rtrim($this->arrData['etc1'] . "\n" . $this->arrData['etc2'] . "\n" . $this->arrData['etc3']); 
    279272        $this->MultiCell(0, 4, $text, '', 2, 'L', 0, ''); 
    280273    } 
    281274 
    282     function createPdf() 
    283     { 
     275    function createPdf() { 
    284276        // PDFをブラウザに送信 
    285277        ob_clean(); 
     
    300292 
    301293    // PDF_Japanese::Text へのパーサー 
    302     function lfText($x, $y, $text, $size = 0, $style = '') 
    303     { 
     294    function lfText($x, $y, $text, $size = 0, $style = '') { 
    304295        // 退避 
    305296        $bak_font_style = $this->FontStyle; 
     
    314305 
    315306    // 受注データの取得 
    316     function lfGetOrderData($order_id) 
    317     { 
     307    function lfGetOrderData($order_id) { 
    318308        if (SC_Utils_Ex::sfIsInt($order_id)) { 
    319309            // DBから受注情報を読み込む 
     
    339329 
    340330    // 受注詳細データの取得 
    341     function lfGetOrderDetail($order_id) 
    342     { 
     331    function lfGetOrderDetail($order_id) { 
    343332        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    344         $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate, tax_rate, tax_rule'; 
     333        $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate'; 
    345334        $where = 'order_id = ?'; 
    346335        $objQuery->setOrder('order_detail_id'); 
Note: See TracChangeset for help on using the changeset viewer.