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
|
<?php $formid = "Inventory"; require_once "inc/configure.php";
if(havePermission("STr")==false){ myerror(INVALID.WS.PERMISSION); }
$refid = setDefaultReqVar("refid", '');
if($refid && $row=getDB("inv_product", $refid) ){ $header = $row; } else { myerror("Invalid request"); }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$system_var['COMPANY_NAME']?></title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <?php require_once "inc/jsheader.php"; ?>
<script> $(document).ready(function(){
}); </script> </head> <body>
<form action="#" name="myform" id="validateForm" method="post" > <input type="hidden" name="action" value="inv_stocktake_history" /> <input type="hidden" name="refid" value="<?=$row['refid']?>" /> <input type="hidden" name="bomcategy" value="<?=$bomcategy?>" /> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <!-- <tr> <td valign="top" class="top"><?php //require"mod_webhead.php"; ?></td> </tr>--> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <!--<td valign="top" class="menu_bg"><?php //require"mod_menu.php"; ?></td>--> <td valign="top" class="padding1"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr></tr> <tr> <td class="c3_bg"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr>
<td class="separator stext1"><?=CURRENT.WS.ORDER?> - <span><?=PRODUCT?></span></td> <td class="separator etext1"><?=$row['itemno']?> - <span><?=$row['name_'.SYS_LANG]?></span> (<?=numf($header['weight'] ,3)?><?=$header['uom_wt']?>/pcs)</td> <!--<td width="200" align="right" class="separator etext2"><?=LAST_MODIFY?>: <?=lastUpdate($row)?></td>--> <td width="80" align="right" class="separator etext2"><a href="#" onclick="fbox_close()" class="closebtn"><?=CLOSE?></a></td> </tr> </table></td> </tr> <tr> <td valign="top" class="c2_bg" style="height:auto"> <!--main form--> <table width="100%" border="0" class="tablelist"> <tr> <th><?=DESC?></th> <th><?=ORDER?><?=WS?><?=NUMBER?></th> <th><?=ORDER.WS.DATE?></th> <th><?=JOB_CARD?></th> <th><?=QTY?></th> <!-- <th><?=QTY?>(+)</th> <th><?=WEIGHT?>(+)</th> <th><?=QTY?>(-)</th> <th><?=WEIGHT?>(-)</th>--> </tr> <?php $sql = "SELECT dbo.ord_main.refid, dbo.ord_main.order_nbr, dbo.ord_main.custcode, dbo.ord_main.launch_date, dbo.ord_dtl.refid as orddtl_refid, dbo.ord_dtl.unitprice, dbo.ord_dtl.uom_cy, dbo.ord_dtl.qty FROM dbo.ord_dtl INNER JOIN dbo.ord_main ON dbo.ord_dtl.main_refid = dbo.ord_main.refid LEFT JOIN dbo.ord_txpako ON dbo.ord_txpako.orddtl_refid = dbo.ord_dtl.refid WHERE dbo.ord_dtl.product_refid = :product_refid AND dbo.ord_txpako.invoiced_time IS NULL GROUP BY dbo.ord_main.refid, dbo.ord_main.order_nbr, dbo.ord_main.custcode, dbo.ord_main.launch_date, dbo.ord_dtl.refid, dbo.ord_dtl.unitprice, dbo.ord_dtl.uom_cy, dbo.ord_dtl.qty ORDER BY dbo.ord_main.launch_date ASC"; $sth = $dbh->prepare($sql); $q = $sth->execute( array(':product_refid' => $refid) ); //echo $sth->getSQL( array(':product_refid' => $orddtl['product_refid']) ); pdo_showerror($sth, $q); while ($row = $sth->fetch(PDO::FETCH_ASSOC) ){?> <tr> <td><?=ORDER?></td> <td class="code"><?=ord_htmllink_order($row['refid'], $row['order_nbr'], 'target="new"')?></td> <td><?=datef($row['launch_date'])?></td> <td><?=ord_htmllink_jobcard($row['orddtl_refid'], false, 'target="new"')?></td> <td class="tdalignright"><?=numf($row['qty'])?></td> <!-- <td class="tdalignright"><?=numf($row['actqty'])?></td> <td class="tdalignright"><?=numf($row['wt'], 3)?></td> <td class="tdalignright"> </td> <td class="tdalignright"> </td>--> </tr> <?php } ?>
</table>
<!-- end of mainform--> </td> </tr> </table></td> </tr> </table></td> </tr> </table> </form>
</body> </html>
|