質問編集履歴
3
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
``` // 届先情報
|
15
|
+
``` // 届先情報
|
16
16
|
|
17
17
|
|
18
18
|
|
@@ -90,66 +90,6 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
-
// 受注データの取得
|
94
|
-
|
95
|
-
private function lfGetOrderData($order_id)
|
96
|
-
|
97
|
-
{
|
98
|
-
|
99
|
-
if (SC_Utils_Ex::sfIsInt($order_id)) {
|
100
|
-
|
101
|
-
// DBから受注情報を読み込む
|
102
|
-
|
103
|
-
$objPurchase = new SC_Helper_Purchase_Ex();
|
104
|
-
|
105
|
-
$objQuery =& SC_Query_Ex::getSingletonInstance();
|
106
|
-
|
107
|
-
$where = 'o.order_id = ?';
|
108
|
-
|
109
|
-
$this->arrDisp = $objPurchase->getOrder($order_id);
|
110
|
-
|
111
|
-
$arrRet = $objQuery->select('*', 'dtb_order as o LEFT JOIN dtb_shipping as s ON o.order_id = s.order_id', $where, array($order_id));
|
112
|
-
|
113
|
-
$this->arrDisp = $arrRet[0];
|
114
|
-
|
115
|
-
list($point) = SC_Helper_Customer_Ex::sfGetCustomerPoint($order_id, $this->arrDisp['use_point'], $this->arrDisp['add_point']);
|
116
|
-
|
117
|
-
$this->arrDisp['point'] = $point;
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
$objShip = new SC_Helper_Purchase_Ex();
|
122
|
-
|
123
|
-
$this->arrShip = $objShip->getShippings($this->arrDisp[‘order_id’]);
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
// 受注詳細データの取得
|
128
|
-
|
129
|
-
$arrRet = $objPurchase->getOrderDetail($order_id);
|
130
|
-
|
131
|
-
$arrRet = SC_Utils_Ex::sfSwapArray($arrRet);
|
132
|
-
|
133
|
-
$this->arrDisp = array_merge($this->arrDisp, $arrRet);
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
// その他支払い情報を表示
|
140
|
-
|
141
|
-
if ($this->arrDisp['memo02'] != '') {
|
142
|
-
|
143
|
-
$this->arrDisp['payment_info'] = unserialize($this->arrDisp['memo02']);
|
144
|
-
|
145
|
-
}
|
146
|
-
|
147
|
-
$this->arrDisp['payment_type'] = 'お支払い';
|
148
|
-
|
149
|
-
}
|
150
|
-
|
151
|
-
}
|
152
|
-
|
153
93
|
コード
|
154
94
|
|
155
95
|
```
|
2
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,29 +12,75 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
``` private function setOrderData()
|
16
|
-
|
17
|
-
{
|
18
|
-
|
19
|
-
$arrOrder = array();
|
20
|
-
|
21
|
-
|
15
|
+
``` // 届先情報 <ここから>
|
22
|
-
|
23
|
-
$this->lfGetOrderData($this->arrData['order_id']);
|
24
16
|
|
25
17
|
|
26
18
|
|
27
|
-
|
19
|
+
$objShip = new SC_Helper_Purchase_Ex();
|
28
20
|
|
29
|
-
$this->SetFont('SJIS', '', 10);
|
30
21
|
|
22
|
+
|
31
|
-
$this->
|
23
|
+
$this->arrShip = $objShip->getShippings($this->arrDisp['order_id']);
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
$y = 76; // お届け先開始y軸位置
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
$count = count($this->arrShip);
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
$i = 0; // 配列のindex
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
$j = 0; // 届け先取り出し数
|
32
48
|
|
33
49
|
|
34
50
|
|
35
51
|
|
36
52
|
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
if ($this->arrShip[$i]['shipping_id'] != "") {
|
58
|
+
|
59
|
+
$y += $j * 4 * 3; // 届け先 * 高さ * 要素数
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
$y += 4;
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
$text = "お届け時間:".$this->arrShip[$i]['shipping_time'] ." " .substr($this->arrShip[$i]["shipping_date"],5,2) . "/" . substr($this->arrShip[$i]["shipping_date"],8,2);
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
$this->lfText(40, 134, $text, 9);
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
$j += 1;
|
80
|
+
|
81
|
+
|
82
|
+
|
37
|
-
}
|
83
|
+
}
|
38
84
|
|
39
85
|
|
40
86
|
|
1
文法の修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
納品書に配達指定日を
|
1
|
+
納品書に配達指定日を表示したい
|
test
CHANGED
File without changes
|