mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-02-22 19:56:29 +01:00
sig rental fix
This commit is contained in:
parent
c5dbb5bff6
commit
087fe3da9c
1 changed files with 15 additions and 7 deletions
|
@ -372,8 +372,16 @@ sub sig_booking {
|
||||||
print FILE "<--- $now_dt failure sig_booking sig_post $todo , reset sig_book hash to empty\n";
|
print FILE "<--- $now_dt failure sig_booking sig_post $todo , reset sig_book hash to empty\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $posref = {
|
||||||
|
table => "contenttranspos",
|
||||||
|
fetch => "one",
|
||||||
|
ca_id => "$ctadr->{c_id}",
|
||||||
|
txt11 => "$sig_book->{rentalId}",
|
||||||
|
};
|
||||||
|
my $ctpos2 = { c_id => 0 };
|
||||||
|
$ctpos2 = $dbt->fetch_tablerecord($dbh,$posref) if(1==1);
|
||||||
|
|
||||||
if($ctpos->{c_id}){
|
if($ctpos2->{c_id}){
|
||||||
my $rows = 0;
|
my $rows = 0;
|
||||||
my $update_pos = {
|
my $update_pos = {
|
||||||
table => "contenttranspos",
|
table => "contenttranspos",
|
||||||
|
@ -384,7 +392,7 @@ sub sig_booking {
|
||||||
table => "content",
|
table => "content",
|
||||||
mtime => "now()",
|
mtime => "now()",
|
||||||
owner => "169",
|
owner => "169",
|
||||||
c_id => $ctpos->{cc_id},
|
c_id => $ctpos2->{cc_id},
|
||||||
};
|
};
|
||||||
|
|
||||||
#rentalId will be only on success!
|
#rentalId will be only on success!
|
||||||
|
@ -407,13 +415,13 @@ sub sig_booking {
|
||||||
}
|
}
|
||||||
|
|
||||||
#keep in mind, all other states will be done on REST, hopefully
|
#keep in mind, all other states will be done on REST, hopefully
|
||||||
$update_pos->{txt25} = "$ctpos->{txt25}\n$sig_book->{return_state}";# if($sig_book->{return_state});
|
$update_pos->{txt25} = "$ctpos2->{txt25}\n$sig_book->{return_state}";# if($sig_book->{return_state});
|
||||||
$rows = $dbt->update_record($dbh,$update_pos,$ctpos);
|
$rows = $dbt->update_record($dbh,$update_pos,$ctpos2);
|
||||||
print FILE "<--- rows: $rows, update_pos: $ctpos->{c_id}, with:" . Dumper($update_pos) . "\n";
|
print FILE "<--- rows: $rows, update_pos: $ctpos2->{c_id}, with:" . Dumper($update_pos) . "\n";
|
||||||
|
|
||||||
if($ctpos->{cc_id}){
|
if($ctpos2->{cc_id}){
|
||||||
$rows = $dbt->update_record($dbh,$update_content,$update_content);
|
$rows = $dbt->update_record($dbh,$update_content,$update_content);
|
||||||
print FILE "<--- rows: $rows, update_content: $ctpos->{cc_id}, with:" . Dumper($update_content) . "\n";
|
print FILE "<--- rows: $rows, update_content: $ctpos2->{cc_id}, with:" . Dumper($update_content) . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue