1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
<div style='<?php if($mcnt>0){?>page-break-before:always;<?php }?>'></div> <div class='state_wrap'> <div class='rec_wrap'> <div class='cus_title'><span>공급 받는자 보관용</span></div> <table border=0 class='statement_table2 st_hd'> <colgroup> <col style="width:25px;"> <col style="width:30px;"> <col style="width:100px;"> <col style="width:30px;"> <col style="width:40px;"> <col style="width:30px;"> <col style="width:80px;">
<col style="width:25px;"> <col style="width:30px;"> <col style="width:130px;"> <col style="width:30px;"> <col style="width:40px;"> <col style="width:30px;"> <col style="width:80px;"> </colgroup>
<thead> <tr class='border-2l border-ntop'> <th class='tcenter border-2t' colspan=2>일자</th> <td class='tcenter border-2t border-2r cont-td' colspan=3><?php echo $minfo['date'];?> <br><?php echo $minfo['dealnum2'];?></td> <td class='top_title'colspan=9 style='border-right:0px;position:relative;'> <div class=''>거 래 명 세 표</div> <table class='f21head'> <tr> <td class='page_tel'>송신T: <?php echo $minfo['s_telno'];?></td><td class='page_tel'>H: <?php echo $minfo['s_hpno'];?></td> </tr> <tr> <td class='page_tel'>수신H: <?php echo $minfo['r_hpno'];?></td><td class='page_tel'>F: <?php echo $minfo['r_faxno'];?></td> </tr> </table> </td> </tr> <tr class='border-2l border-2t border-2r'> <th class='tcenter' rowspan=4>공<br>급<br>자</th> <th class='tcenter'>등록<br>번호</th> <td class='tcenter cont-td' colspan=5><?php echo $minfo['s_comp_sn'];?></td> <th class='tcenter' rowspan=4>공<br>급<br>자<br>받<br>는<br>자</th> <th class='tcenter'>등록<br>번호</th> <td class='tcenter cont-td' colspan=5><?php echo $minfo['r_comp_sn'];?></td> </tr> <tr class='border-2l border-2r'> <th class='tcenter'>상호</th> <td class='linetxt cont-td' colspan=3> <?php echo $minfo['s_comp_name'];?> </td> <th class='tcenter'>성명</th> <td class='linetxt cont-td pos_real'> <?php echo $minfo['s_ceo_name'];?> <?php if($seal_print=='1'){?> <img src='http://mjsoft.co/seal/<?php echo $minfo['s_comp_sn'];?>.gif' onerror="this.style.display='none';" width=30 id='seal_img'> <?php }?> </td> <th class='tcenter'>상호</th> <td class='linetxt cont-td' colspan=3><?php echo $minfo['r_comp_name'];?></td> <th class='tcenter'>성명</th> <td class='linetxt cont-td'><?php echo $minfo['r_ceo_name'];?></td> </tr> <tr class='border-2l border-2r'> <th class='tcenter'>주소</th> <td class='linetxt cont-td' colspan=5 style='overflow: hidden; '><?php echo $minfo['s_addr'];?></td> <th class='tcenter'>주소</th> <td class='linetxt cont-td' colspan=5 style='overflow: hidden; '><?php echo $minfo['r_addr'];?></td> </tr> <tr class='border-2l border-2r'> <th class='tcenter'>업태</th> <td class='linetxt cont-td'><?php echo $minfo['s_biz_status'];?></td> <th class='tcenter'>종목</th> <td class='linetxt cont-td' colspan=3><?php echo $minfo['s_biz_item'];?></td> <th class='tcenter'>업태</th> <td class='linetxt cont-td'><?php echo $minfo['r_biz_status'];?></td> <th class='tcenter'>종목</th> <td class='linetxt cont-td' colspan=3><?php echo $minfo['r_biz_item'];?></td> </tr> </thead> </table> <table border=0 class='statement_table2 st_bd'> <colgroup> <?php if($view_bigo=='Y'){ // 비고 보일때?> <col style="width:280px;"> <col style="width:50px;"> <col style="width:50px;"> <col style="width:80px;"> <col style="width:90px;"> <col style="width:80px;"> <col style="width:70px;"> <?php } else {?> <col style="width:300px;"> <col style="width:40px;"> <col style="width:80px;"> <col style="width:80px;"> <col style="width:100px;"> <col style="width:100px;"> <?php }?> </colgroup> <thead> <tr class='<?php echo $class;?> border-2l border-2r'> <th class='tcenter' >품 목 (규 격)</th> <th class='tcenter' >단 위</th> <th class='tcenter' >수 량</th> <th class='tcenter' >단 가</th> <th class='tcenter' >금 액</th> <th class='tcenter' >세 액</th> <?php if($view_bigo=='Y'){ // 비고 보일때?> <th class='tcenter' >비 고</th> <?php }?> </tr> </thead> <tbody> <?php $row = $m_array[$mcnt]['product']; $cnt = 0; foreach($row as $key=>$val){ if($cnt<$prod_start){ $cnt++; continue; } if($cnt==$prod_start+21){ break; } if($val['qty']==null && $val['pname']!='[입 금]'){ $class_txt = "tcenter"; } else { $class_txt = "linetxt"; } ?> <tr class='<?php echo $class;?> border-2l border-2r'> <td class='<?php echo $class_txt;?> <?php echo $class;?>' style='padding-left:15px;<?php echo $style;?>'><?php echo $val['pname']?> <?php if($val['pnorm']!=''){ echo "({$val['pnorm']})"; }?></td> <td class='linetxt <?php echo $class;?>' style='<?php echo $style;?>'><?php echo $val['unit']?></td> <td class='cost <?php echo $class;?>' style='<?php echo $style;?>'><?php if($val['qty']!=null){ echo number_format($val['qty']); }?></td>
<td class='cost <?php echo $class;?>' style='<?php echo $style;?>'><?php if($val['price']!=null){ echo number_format($val['price']); }?></td> <td class='cost <?php echo $class;?>' style='<?php echo $style;?>'><?php if($val['sup_amt']!=null){ echo number_format($val['sup_amt']); }?></td> <td class='cost <?php echo $class;?>' style='<?php echo $style;?>'><?php if($val['vat']!=null){ echo number_format($val['vat']); }?></td> <?php if($view_bigo=='Y'){ // 비고 보일때?> <td class='linetxt <?php echo $class;?>' style='<?php echo $style;?>'><?php echo $val['remarks']?></td> <?php }?> </tr> <?php $cnt++; } if($cnt-$prod_start<21){ for($i=$cnt-$prod_start;$i<21;$i++){ ?> <tr class='<?php echo $class;?> border-2l border-2r'> <td class='<?php echo $class_txt;?> <?php echo $class;?>' style='<?php echo $style;?>'> </td> <td class='linetxt <?php echo $class;?>' style='<?php echo $style;?>'> </td> <td class='cost <?php echo $class;?>' style='<?php echo $style;?>'> </td>
<td class='cost <?php echo $class;?>' style='<?php echo $style;?>'> </td> <td class='cost <?php echo $class;?>' style='<?php echo $style;?>'> </td> <td class='cost <?php echo $class;?>' style='<?php echo $style;?>'> </td> <?php if($view_bigo=='Y'){ // 비고 보일때?> <td class='linetxt <?php echo $class;?>' style='<?php echo $style;?>'> </td> <?php }?> </tr> <?php $cnt++; } } ?> </tbody> <table border=0 class='statement_table2 st_bt'> <colgroup> <col style="width:50px;"> <col style="width:110px;"> <col style="width:30px;"> <col style="width:100px;"> <col style="width:30px;"> <col style="width:100px;"> <col style="width:40px;"> <col style="width:100px;"> <col style="width:40px;"> <col style="width:100px;"> </colgroup> <tbody> <tr class='border-2l border-2r border-2b'> <th class='tcenter'>비고</th> <td class='linetxt' colspan='9' height=55> <table class='f21foot'> <tr> <td class='page_bigo'>전표비고 : <?php echo $minfo['remarks'];?></td> </tr> <tr> <td class='page_bank'>은행 : 은행:<?php if($bankinfo['bankcode']!=''){ echo "{$bank[$bankinfo['bankcode']]}, 계좌:{$bankinfo['acntnumber']}, 예금주:{$bankinfo['name']}"; }?></td> </tr> <tr> <td class='page_misu'>전미수 : <?php echo number_format($minfo['cur_recvbl']-$minfo['sum_tot']);?></td> </tr> </table> </td> </tr> <tr class='border-2l border-2r border-2b'> <th class='tcenter'>공급<br>가액</th> <td class='cost'>₩<?php echo number_format($minfo['sum_amt']);?></td> <th class='tcenter'>세액</th> <td class='cost'>₩<?php echo number_format($minfo['sum_vat']);?></td> <th class='tcenter'>합계</th> <td class='cost'>₩<?php echo number_format($minfo['sum_tot']);?></td> <th class='tcenter'>미수금</th> <td class='cost'>₩<?php echo number_format($minfo['cur_recvbl']);?></td> <th class='tcenter'>인수자</th> <td class='cost'></td> </tr> </tbody> </table> </div> </div>
|