mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 05:56:27 +02:00
Bonus- Freischaltcode fixes
This commit is contained in:
parent
c990802a4c
commit
7a6f57a2ef
9 changed files with 26 additions and 22 deletions
|
@ -277,7 +277,7 @@ sub save_account(){
|
|||
my @txt30_op = ();
|
||||
|
||||
if(ref($operator_conf) eq "HASH" && $operator_conf->{oprefix} && $operator_conf->{database}->{dbname}){
|
||||
print FILE "Bonus- oder Antragsnummer $valxx : " . $operator_conf->{oprefix} . " " . $operator_conf->{database}->{dbname} . "\n" if($debug);
|
||||
print FILE "Bonus- oder Freischaltcode $valxx : " . $operator_conf->{oprefix} . " " . $operator_conf->{database}->{dbname} . "\n" if($debug);
|
||||
my $dbh_operator = $dbt->dbconnect_extern($operator_conf->{database}->{dbname});
|
||||
#to get operator bonusnr
|
||||
my $pref_bo = {
|
||||
|
@ -740,10 +740,9 @@ sub save_transact(){
|
|||
my $cttpos = { c_id => 0 };
|
||||
$cttpos = $dbt->collect_post($dbh_operator,$posref);
|
||||
|
||||
#for now used only for LNdW
|
||||
if($operator_conf->{database}->{dbname} eq "sharee_kn"){
|
||||
#check if user has still coupon used
|
||||
if(!$cttpos->{c_id}){
|
||||
#if(!$cttpos->{c_id}){#disabled
|
||||
if(1==1){
|
||||
if($ctt->{c_id} > 0){
|
||||
$pos_id = $dbt->insert_pos($dbh_operator,$ctt->{c_id},$ct,$ctadr_operator,"",$now_dt,$valxx,"0",$owner);
|
||||
}else{
|
||||
|
@ -754,7 +753,6 @@ sub save_transact(){
|
|||
}else{
|
||||
$ret = "failure::conflict_txt16#top";
|
||||
}
|
||||
}
|
||||
|
||||
if($pos_id){
|
||||
$ret = "success::txt16";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue