blob: e5948ff0bd0e585954964e0551ae8d58d4ff198e (
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
|
<% include( 'elements/process.html',
'table' => 'did_order',
'viewall_dir' => 'browse',
'value_callback' => $value_callback,
'process_o2m' => {
'table' => 'did_order_item',
'fields' => \@item_fields,
},
)
%>
<%init>
unless($cgi->param('submitted')) {
$cgi->param('submitted',time);
}
my $value_callback = sub {
my ($field, $value) = @_;
($field =~ /ed$/ && $value !~ /^\d+$/) ? parse_datetime($value) : $value;
};
my @item_fields = qw( msa npa latanum rate_center state quantity );
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
</%init>
|