mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-07-17 18:27:27 +02:00
operator data fix
This commit is contained in:
parent
b9b63c63e5
commit
148d4bbd48
3 changed files with 17 additions and 11 deletions
|
@ -176,9 +176,10 @@ sub get_tripsum {
|
|||
print FILE "distance: $resp->{distance}" . "\n";
|
||||
if($resp->{distance} && $resp->{distance} > 0){
|
||||
#my $distance = $resp->{distance} / 1000 * 1.60934; #distance in Meilen
|
||||
my $distance = $resp->{distance} / 1000;
|
||||
my $distance = 0;
|
||||
$distance = $resp->{distance} / 1000;
|
||||
$distance = sprintf('%.2f', $distance);
|
||||
$update_pos->{int26} = $distance;
|
||||
$update_pos->{int26} = $distance if($distance < 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,6 +135,7 @@ if(ref($sendmail) eq "HASH" && $sendmail->{c_id}){
|
|||
|
||||
#user messaging for all operators by one cronjob
|
||||
if($todo eq "send_invoice_onwork" || $todo eq "email_longterm_occupied"){
|
||||
$sendref->{mailxcfg} = "mailx_invoice";
|
||||
#loop operators DB
|
||||
while (my ($key, $op_name) = each %{ $dbt->{operator} }) {
|
||||
if($op_name->{database}->{dbname}){
|
||||
|
@ -489,7 +490,8 @@ sub send_invoice_onwork {
|
|||
};
|
||||
my $uadr = { c_id => 0 };
|
||||
$uadr = $dbt->fetch_tablerecord($dbh_primary,$pref_ctu);
|
||||
$sendref->{mail_to} = $uadr->{txt08};
|
||||
#$sendref->{mail_to} = $uadr->{txt08};
|
||||
$sendref->{mail_to} = $sendref->{mail_from};#yes, delivering to $sendref->{mailxcfg} = "mailx_invoice";
|
||||
|
||||
my $pref = {
|
||||
table => "contenttrans",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue