Changeset 22796 for branches/version-2_12-dev/data/class/SC_Fpdf.php
- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Fpdf.php
r22567 r22796 30 30 define('PDF_TEMPLATE_REALDIR', TEMPLATE_ADMIN_REALDIR . 'pdf/'); 31 31 32 class SC_Fpdf extends SC_Helper_FPDI 33 { 34 function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') 35 { 32 class SC_Fpdf extends SC_Helper_FPDI { 33 function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') { 36 34 $this->FPDF(); 37 35 // デフォルトの設定 … … 69 67 } 70 68 71 function setData($arrData) 72 { 69 function setData($arrData) { 73 70 $this->arrData = $arrData; 74 71 … … 96 93 } 97 94 98 function setShopData() 99 { 95 function setShopData() { 100 96 // ショップ情報 101 97 … … 134 130 } 135 131 136 function setMessageData() 137 { 132 function setMessageData() { 138 133 // メッセージ 139 134 $this->lfText(27, 70, $this->arrData['msg1'], 8); //メッセージ1 … … 144 139 } 145 140 146 function setOrderData() 147 { 141 function setOrderData() { 148 142 $arrOrder = array(); 149 143 // DBから受注情報を読み込む … … 184 178 185 179 // 税込金額(単価) 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]); 187 181 188 182 // 小計(商品毎) … … 270 264 * @return string 変更後の文字列 271 265 */ 272 function setEtcData() 273 { 266 function setEtcData() { 274 267 $this->Cell(0, 10, '', 0, 1, 'C', 0, ''); 275 268 $this->SetFont('Gothic', 'B', 9); 276 269 $this->MultiCell(0, 6, '< 備考 >', 'T', 2, 'L', 0, ''); 277 270 $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']); 279 272 $this->MultiCell(0, 4, $text, '', 2, 'L', 0, ''); 280 273 } 281 274 282 function createPdf() 283 { 275 function createPdf() { 284 276 // PDFをブラウザに送信 285 277 ob_clean(); … … 300 292 301 293 // PDF_Japanese::Text へのパーサー 302 function lfText($x, $y, $text, $size = 0, $style = '') 303 { 294 function lfText($x, $y, $text, $size = 0, $style = '') { 304 295 // 退避 305 296 $bak_font_style = $this->FontStyle; … … 314 305 315 306 // 受注データの取得 316 function lfGetOrderData($order_id) 317 { 307 function lfGetOrderData($order_id) { 318 308 if (SC_Utils_Ex::sfIsInt($order_id)) { 319 309 // DBから受注情報を読み込む … … 339 329 340 330 // 受注詳細データの取得 341 function lfGetOrderDetail($order_id) 342 { 331 function lfGetOrderDetail($order_id) { 343 332 $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'; 345 334 $where = 'order_id = ?'; 346 335 $objQuery->setOrder('order_detail_id');
Note: See TracChangeset
for help on using the changeset viewer.