mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-09 21:46:34 +02:00
operator access to customer
This commit is contained in:
parent
5c68b91b14
commit
df19863a86
5 changed files with 15 additions and 12 deletions
|
@ -578,7 +578,7 @@ div#Headerlogo {
|
|||
padding:4px 10px;
|
||||
height:48px;
|
||||
margin: -18px -12px !important;
|
||||
width:300px;
|
||||
width:350px;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
|
|
|
@ -505,6 +505,7 @@ sub service_update(){
|
|||
"ct.close_time" => "is::null",
|
||||
int10 => "1",
|
||||
int28 => "3",
|
||||
end_time => ">=::(now() - interval '5 min')",
|
||||
};
|
||||
my $ctpos = { c_id => 0 };
|
||||
|
||||
|
@ -553,7 +554,7 @@ sub service_update(){
|
|||
table_pos => "contenttranspos",
|
||||
fetch => "one",
|
||||
ca_id => "$auth->{c_id}",
|
||||
#end_time => ">=::(now() - interval '10 minutes')",
|
||||
end_time => ">=::(now() - interval '5 min')",
|
||||
};
|
||||
my $post_record = { c_id => 0 };
|
||||
$post_record = $dbt->collect_post($dbh_operator,$postref);
|
||||
|
@ -1749,7 +1750,7 @@ sub rental_to_feedback{
|
|||
int10 => "1",
|
||||
int11 => "3",#sig system
|
||||
int28 => "3",#set count on sig rental_end
|
||||
#end_time => ">=::(now() - interval '5 min')",
|
||||
end_time => ">=::(now() - interval '5 min')",
|
||||
};
|
||||
my $ctpos = { c_id => 0 };
|
||||
$ctpos = $dbt->collect_post($dbh,$pref);
|
||||
|
|
|
@ -104,7 +104,7 @@ sub tpl(){
|
|||
$save_key = "save_adr";
|
||||
$edit_template = "$ctrel->{template_id}" . "000";
|
||||
$tpl = $db->get_tpl($edit_template);
|
||||
}elsif($node_meta->{ct_table} eq "users" && $u_id){
|
||||
}elsif($node_meta->{ct_table} eq "users" && $node_meta->{tpl_id} == 198 && $u_id){
|
||||
my $ref = {
|
||||
table => "$node_meta->{ct_table}",
|
||||
fetch => "one",
|
||||
|
|
|
@ -125,7 +125,7 @@ sub tpl(){
|
|||
print $q->end_form;
|
||||
print $q->start_form();
|
||||
|
||||
print "<div id='Content4list' style='font-size:0.91em;min-width:1400px;'>\n";
|
||||
print "<div id='Content4list' style='font-size:0.91em;min-width:1500px;'>\n";
|
||||
|
||||
my $start_date_time = $R::start_date_time;
|
||||
my $end_date_time = $R::end_date_time;
|
||||
|
@ -278,7 +278,7 @@ sub tpl(){
|
|||
}
|
||||
else{
|
||||
$size="9px" if($key =~ /int/);
|
||||
if($key =~ /ct_name/){
|
||||
if($key =~ /ct_name|barcode/){
|
||||
print $q->textfield(-class=>'stxt2',-name=>"$key",-default=>"$valxx",-size=>"$size",-override=>'1',-maxlength=>40, -placeholder=>"$des",-autofocus=>1),"\n";
|
||||
}else{
|
||||
print $q->textfield(-class=>'stxt2',-name=>"$key",-default=>"$valxx",-size=>"$size",-override=>'1', -maxlength=>40, -placeholder=>"$des"),"\n";
|
||||
|
|
|
@ -142,6 +142,14 @@ sub tpl(){
|
|||
if($main_id >= "100000"){
|
||||
my $mstyle="";
|
||||
|
||||
my $dbh_primary = $dbt->dbconnect_extern("sharee_primary");
|
||||
my $users_dms_primary = { u_id => 0 };
|
||||
$users_dms_primary = $dbt->select_users($dbh_primary,$users_dms->{u_id},"and int02=2");
|
||||
#print Dumper($users_dms_primary);
|
||||
|
||||
my $mod_active = "$dbt->{shareedms_conf}->{mod_active}";
|
||||
$mod_active .= "|Kunden|Faktura" if($users_dms_primary->{u_id} && $users_dms_primary->{int02} == 2);
|
||||
|
||||
###Top Menu
|
||||
#bootstrap menue
|
||||
print "<nav class='navbar navbar-expand-md navbar-dark bg-dark fixed-top' style='top:23px;opacity:0.85;'>\n";
|
||||
|
@ -169,12 +177,6 @@ sub tpl(){
|
|||
$main_id = $node->{$id}->{main_id};
|
||||
}
|
||||
|
||||
my $dbh_primary = $dbt->dbconnect_extern("sharee_primary");
|
||||
my $users_dms_primary = { u_id => 0 };
|
||||
$users_dms_primary = $dbt->select_users($dbh_primary,$users_dms->{u_id},"and int03=2");
|
||||
|
||||
my $mod_active = "$dbt->{shareedms_conf}->{mod_active}";
|
||||
$mod_active .= "|Kunden|Faktura" if($users_dms_primary->{u_id} && $users_dms_primary->{int03} == 2);
|
||||
if($node->{$id}->{main_id} && $node->{$id}->{node_name} =~ /$mod_active/){
|
||||
my $topath = "/$viewsel[0]/$node->{$id}->{node_path}";
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue