summaryrefslogtreecommitdiff
path: root/httemplate/misc/did_order_confirm.html
blob: e55958d8c0c302c681e4e31edde79b1c1ed11d0d (plain)
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
<% include('/elements/header-popup.html', 'Confirm Bulk DID Order' ) %>

<% include('/elements/error.html') %>

<FORM NAME="did_order_confirm" ACTION="<% popurl(1) %>did_order_confirmed.html" METHOD=POST>
<INPUT TYPE="hidden" NAME="ordernum" VALUE="<% $ordernum %>">
<INPUT TYPE="hidden" NAME="action" VALUE="confirm">
<TABLE>
    <TR>    
        <TD>Order #</TD>
        <TD><% $ordernum %></TD>
    </TR>
    <% include( '/elements/tr-input-text.html', 
            'field' => 'vendor_order_id',
		    'label' => 'Vendor Order #',
            'value' => $did_order->vendor_order_id,
           )
    %>
    <% include( '/elements/tr-input-date-field.html', {
		    'name' => 'confirmed',
		    'label' => 'Order Confirmed',
		    'value' => $did_order->confirmed,
           })
    %>
    <TR>
        <TD COLSPAN="2"><INPUT TYPE="SUBMIT" value="Confirm"></TD>
    </TR>
</TABLE>

<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Import');

$cgi->param('ordernum') =~ /^(\d+)$/ or die 'illegal ordernum';
my $ordernum = $1;
my $did_order = qsearchs( {
  'table'     => 'did_order',
  'hashref'   => { 'ordernum' => $ordernum },
} );
die "No order $ordernum" unless $did_order;

</%init>