mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 05:56:27 +02:00
bike_group rental end and maps
This commit is contained in:
parent
50b695117a
commit
f09361320e
8 changed files with 131 additions and 55 deletions
|
@ -638,14 +638,6 @@ sub save_transact(){
|
|||
};
|
||||
my $ctadr = $dbt->fetch_record($dbh,$authref);
|
||||
|
||||
my $update_primary = {
|
||||
table => "contentadr",
|
||||
mtime => "now()",
|
||||
owner => "$owner",
|
||||
c_id => "$c_id",
|
||||
};
|
||||
|
||||
|
||||
my $pos_id="";
|
||||
my $ret;
|
||||
my $fkeys;
|
||||
|
@ -688,6 +680,28 @@ sub save_transact(){
|
|||
$ctadr_operator = $dbt->fetch_record($dbh_operator,$authref);
|
||||
|
||||
if(!$ctadr_operator->{c_id}){
|
||||
|
||||
my %operator_hash = ();
|
||||
if($ctadr->{txt17} && $ctadr->{txt17} =~ /\w\s\w/){#append DB's
|
||||
%operator_hash = map { $_ => 1 } split(/\s+/,$ctadr->{txt17});
|
||||
}elsif($ctadr->{txt17}){
|
||||
$operator_hash{$ctadr->{txt17}} = 1;
|
||||
}
|
||||
$operator_hash{$operator_conf->{database}->{dbname}} = 1;
|
||||
my @operator_array = keys %operator_hash;
|
||||
|
||||
$bw->log("save_transact update operator keys by array: @operator_array",\%operator_hash,"");
|
||||
print FILE "save_transact update operator keys by array: @operator_array | pri $ctadr->{c_id}\n" if($debug);
|
||||
|
||||
my $update_primary = {
|
||||
table => "contentadr",
|
||||
txt17 => "@operator_array",#operator ids
|
||||
txt19 => "$operator_conf->{database}->{dbname}",
|
||||
atime => "now()",
|
||||
owner => "198",#update initiated by primary
|
||||
};
|
||||
my $rows = $dbt->update_record($dbh,$update_primary,$ctadr);
|
||||
|
||||
print FILE "Gutschein oprefix address INSERT adr from record_primary to operator $operator_conf->{database}->{dbname} , c_id:$ctadr->{c_id}\n";
|
||||
my $insert_op = {
|
||||
%$ctadr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue