mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-15 08:06:27 +02:00
minor changes
This commit is contained in:
parent
eac5a10050
commit
6747fa4fc2
5 changed files with 29 additions and 19 deletions
|
@ -17,7 +17,7 @@ use Date::Calc qw(:all);
|
|||
use Scalar::Util qw(looks_like_number);
|
||||
use DateTime;
|
||||
use DateTime::Format::Pg;
|
||||
|
||||
use Data::Dumper;
|
||||
use Lib::Config;
|
||||
use Mod::Buttons;
|
||||
use Mod::Libenz;
|
||||
|
@ -79,6 +79,10 @@ sub preinit(){
|
|||
my $aconf = Config::General->new($api_file);
|
||||
my %apikeyconf = $aconf->getall;
|
||||
|
||||
open(FILE,">>$varenv{logdir}/Prelogic.log");
|
||||
print FILE "\n*--> $now_dt| u_id: $users_dms->{u_id}" . Dumper($q) . "\n";
|
||||
|
||||
|
||||
if(!$users_dms->{u_id}){
|
||||
return "failure::Fehler<br /> Die Anwender Authentifikation wurde unterbrochen.";
|
||||
}
|
||||
|
@ -242,7 +246,7 @@ sub preinit(){
|
|||
}elsif($ct_name && !$rel->{content_id}){
|
||||
return "failure::Für die Terminzuordnung bitte zuerst einen Verkauf Vorgang öffnen oder neu erzeugen.<br /> ::$varenv{wwwhost}/Verkauf::Zum Verkauf";
|
||||
}else{
|
||||
return "failure::Die Artikelnummer konnte nicht gefunden werden.<br /> ::$varenv{wwwhost}/Waren::Waren verwalten";
|
||||
return "failure::Die Artikelnummer konnte nicht gefunden werden.<br /> ::$varenv{wwwhost}/DMS/Waren::Waren verwalten";
|
||||
}
|
||||
}
|
||||
#####
|
||||
|
@ -562,7 +566,7 @@ sub preinit(){
|
|||
owner => $users_dms->{u_id},
|
||||
};
|
||||
|
||||
if(($node_faktura->{invoice_nr} > 0) && ("$ctt->{ct_name}" !~ /\d/ || "$R::set_main_id" != "$rel->{main_id}")){
|
||||
if($node_faktura->{invoice_nr} > 0 && $ctt->{c_id} > 0 && ($ctt->{ct_name} !~ /\d/ || $R::set_main_id != $rel->{main_id})){
|
||||
|
||||
my $nextNr = $node_faktura->{invoice_nr};
|
||||
$update_ctt->{ct_name} = "$nextNr";
|
||||
|
@ -578,8 +582,11 @@ sub preinit(){
|
|||
$update_ctt->{int12} = $node->{main_id};
|
||||
$update_ctt->{txt00} = $node->{node_name};
|
||||
$u_rows += $dbt->update_record($dbh,$update_ctt,$ctt);
|
||||
|
||||
print FILE "invoice_nr:$invoice_nr,$users_dms->{c_id4trans},$users_dms->{tpl_id4trans} by condition: ($node_faktura->{invoice_nr} > 0) && ($ctt->{ct_name} !~ /\d/ || $R::set_main_id != $rel->{main_id})\n";
|
||||
}
|
||||
|
||||
|
||||
#SET state alias Zahlung buchen
|
||||
if($R::set_state && !$R::close_time){
|
||||
my $state = $R::state || "";
|
||||
|
@ -773,6 +780,7 @@ sub preinit(){
|
|||
}
|
||||
$db->cleanup_users($users_dms->{u_id});
|
||||
}
|
||||
close(FILE);
|
||||
###
|
||||
return "$i_rows-$u_rows-$d_rows";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue