[freeside-commits] freeside/httemplate/misc did_order_confirm.html, NONE, 1.1.2.2 did_order_confirmed.html, NONE, 1.1.2.2
Erik Levinson
levinse at wavetail.420.am
Mon Apr 11 16:03:34 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv22643/httemplate/misc
Added Files:
Tag: FREESIDE_2_1_BRANCH
did_order_confirm.html did_order_confirmed.html
Log Message:
improvements to bulk DID orders, RT11291
--- NEW FILE: did_order_confirmed.html ---
<% include('/elements/header-popup.html', "DID order confirmed") %>
<SCRIPT TYPE="text/javascript">
window.top.location.reload();
</SCRIPT>
</BODY>
</HTML>
<%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;
my $confirmed = '';
$confirmed = parse_datetime($cgi->param('confirmed'))
if $cgi->param('confirmed') && $cgi->param('confirmed') !~ /^\d+$/;
$confirmed = $1
if $cgi->param('confirmed') && $cgi->param('confirmed') =~ /^(\d+)$/;
die "invalid confirmation date" unless $confirmed;
my $error = '';
$did_order->confirmed($confirmed);
$did_order->vendor_order_id($cgi->param('vendor_order_id'));
$error = $did_order->replace;
if ( $error ) {
$cgi->param('error', $error);
print $cgi->redirect(popurl(1). "did_order_confirm.html?". $cgi->query_string );
}
</%init>
--- NEW FILE: did_order_confirm.html ---
<% 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 %>">
<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>
More information about the freeside-commits
mailing list