Bugfixes presta, support for project specific number ranges

This commit is contained in:
Andreas Palm
2023-01-29 15:38:30 +01:00
parent bcf2544735
commit 4eac5fbbdc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29451,7 +29451,7 @@ function Firmendaten($field,$projekt="")
$dbfield = "next_$type";
$belegnr = $this->app->DB->Select("SELECT $dbfield FROM projekt WHERE id='$projekt' LIMIT 1");
if (!empty($belegnr)) {
$newbelegnr = $this->CalcNextNummer($dbvalue);
$newbelegnr = $this->CalcNextNummer($belegnr);
$this->app->DB->Update("UPDATE projekt SET $dbfield='$newbelegnr' WHERE id='$projekt' LIMIT 1");
}
}