diff options
author | levinse <levinse> | 2011-02-13 07:23:42 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-02-13 07:23:42 +0000 |
commit | 705719c34352808839deb2f7fb9c420fd1baf3c8 (patch) | |
tree | 7c1bc01f55bc9382bd9f7297e114d1e69efeeef5 /httemplate/edit | |
parent | 67c6b2d956295e851335567da679230d818e73ab (diff) |
bulk DID orders and inventory, RT11291
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/did_order.html | 46 | ||||
-rw-r--r-- | httemplate/edit/did_vendor.html | 19 | ||||
-rw-r--r-- | httemplate/edit/elements/edit.html | 5 | ||||
-rw-r--r-- | httemplate/edit/process/did_order.html | 21 | ||||
-rw-r--r-- | httemplate/edit/process/did_vendor.html | 11 |
5 files changed, 102 insertions, 0 deletions
diff --git a/httemplate/edit/did_order.html b/httemplate/edit/did_order.html new file mode 100644 index 000000000..ac8f336d4 --- /dev/null +++ b/httemplate/edit/did_order.html @@ -0,0 +1,46 @@ +<% include( 'elements/edit.html', + 'fields' => [ + { field => 'vendornum', + type => 'select-table', + name_col => 'vendorname', + table => 'did_vendor', + disable_empty => 1, + }, + 'vendor_order_id', + 'msa', + { field => 'latanum', + type => 'select-table', + name_col => 'description', + table => 'lata', + disable_empty => 1, + label_showkey => 1, + }, + 'rate_center', + { field => 'state', + type => 'select-state', + country => 'US', + }, + 'quantity', + { field => 'confirmed', + type => 'input-date-field', + }, + ], + 'labels' => { + 'vendornum' => 'Vendor', + 'vendor_order_id' => 'Vendor Order #', + 'msa' => 'MSA', + 'latanum' => 'LATA', + 'rate_center' => 'Rate Center', + }, + 'viewall_dir' => 'browse', + 'table' => 'did_order', + 'name' => 'Bulk DID Order', + ) + +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +</%init> diff --git a/httemplate/edit/did_vendor.html b/httemplate/edit/did_vendor.html new file mode 100644 index 000000000..b6d57b548 --- /dev/null +++ b/httemplate/edit/did_vendor.html @@ -0,0 +1,19 @@ +<% include( 'elements/edit.html', + 'fields' => [ + 'vendorname', + ], + 'labels' => { + 'vendorname' => 'Vendor name', + }, + 'viewall_dir' => 'browse', + 'table' => 'did_vendor', + 'name' => 'Bulk DID Vendor', + ) + +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +</%init> diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 89f0fcc4c..6d88e5d58 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -311,6 +311,11 @@ Example: % foreach grep exists($f->{$_}), % qw( hashref agent_virt agent_null agent_null_right ); % +% # select-country +% $include_common{$_} = $f->{$_} +% foreach grep exists($f->{$_}), +% qw( country ); +% % #htmlarea % $include_common{$_} = $f->{$_} % foreach grep exists($f->{$_}), qw( width height ); diff --git a/httemplate/edit/process/did_order.html b/httemplate/edit/process/did_order.html new file mode 100644 index 000000000..0c9a3f0e0 --- /dev/null +++ b/httemplate/edit/process/did_order.html @@ -0,0 +1,21 @@ +<% include( 'elements/process.html', + 'table' => 'did_order', + 'viewall_dir' => 'browse', + 'value_callback' => $value_callback, + ) +%> +<%init> + +unless($cgi->param('submitted')) { + $cgi->param('submitted',time); +} + +my $value_callback = sub { + my ($field, $value) = @_; + ($field =~ /ed$/ && $value !~ /^\d+$/) ? parse_datetime($value) : $value; +}; + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +</%init> diff --git a/httemplate/edit/process/did_vendor.html b/httemplate/edit/process/did_vendor.html new file mode 100644 index 000000000..891a45392 --- /dev/null +++ b/httemplate/edit/process/did_vendor.html @@ -0,0 +1,11 @@ +<% include( 'elements/process.html', + 'table' => 'did_vendor', + 'viewall_dir' => 'browse', + ) +%> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +</%init> |