mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 23:26:29 +02:00
copri feedback-dialog and new-content fix
This commit is contained in:
parent
a285cc0d02
commit
4734370702
8 changed files with 37 additions and 59 deletions
|
@ -1494,28 +1494,6 @@ sub booking_update(){
|
|||
$booking_values->{co2saving} = $co2saving;
|
||||
}
|
||||
}
|
||||
|
||||
#to LV only if available
|
||||
if($varenv{dbname} eq "sharee_lv" && $booking->{int10} == 1){
|
||||
#system(`$varenv{basedir}/src/scripts/xml2lastenvelo.pl pos2xml $booking->{c_id} "contenttranspos" ""`);
|
||||
my $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
|
||||
$xml .= "<sharee_LastenVelo>\n";
|
||||
$xml .= "<todo>available</todo>\n";
|
||||
$xml .= "<bikeID>$booking_values->{bike}</bikeID>\n";
|
||||
$xml .= "<userID>$auth->{int01}</userID>\n";
|
||||
$xml .= "<emailID>$auth->{txt08}</emailID>\n";
|
||||
$xml .= "</sharee_LastenVelo>\n";
|
||||
|
||||
my $avail_file = "$varenv{xmlfile}/sharee_available.xml";
|
||||
unlink "$avail_file";
|
||||
open(FILE,">$avail_file");
|
||||
print FILE "$xml";
|
||||
close(FILE);
|
||||
chmod 0666, "$avail_file";
|
||||
$bw->log("scp $avail_file",$xml,"");
|
||||
system("/usr/bin/scp -P 50001 $avail_file pi\@localhost:/home/pi/lvfserver/inbox_xml_files/.") if($dbt->{copri_conf}->{stage} eq "live");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return ($rows,$booking_values);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue