mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 14:06:26 +02:00
Vde and invoice closing
This commit is contained in:
parent
eafd393458
commit
39c28a9711
4 changed files with 14 additions and 43 deletions
|
@ -423,12 +423,10 @@ sub save_account(){
|
|||
}
|
||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_='$valxx'");
|
||||
}
|
||||
}elsif($_ eq "int12"){
|
||||
if($varenv{dbname} eq "sharee_primary"){
|
||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_=2");
|
||||
}else{
|
||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_=$valxx");
|
||||
}
|
||||
}elsif($_ eq "int12" && $varenv{dbname} ne "sharee_primary"){
|
||||
my $vde_on_fail = 0;
|
||||
$vde_on_fail = 2 if($valxx && $valxx == 1);
|
||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_=$vde_on_fail");
|
||||
}elsif($_ =~ /^int|barcode/){
|
||||
$u_rows = $dbt->update_one($dbh,$update_primary,"$_=$valxx");
|
||||
}elsif($_ eq "ct_name" && $R::base_edit){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue